MVI56-ADMNET ADM_tcp_open command
You need to be logged in to get access to the forums. You can do so here
|
gblanton
|
Thursday 29 July 2004 3:25:20 pm |
|
|
MVI56-ADMNET ADM_tcp_open command
The port parameter is defined as a word. However, my application requires that I connect at port 41199. My compiler gives me a warning that a long constant is used. Can the command support ports above 32768? In addition, does anyone have any example code using the ADM_tcp_open command?
|
|
esyme
|
Friday 06 August 2004 2:08:46 pm |
|
|
RE:MVI56-ADMNET ADM_tcp_open command
The recommended way for using ADM library files for establishing a tcp/ip connection would be to use the ADM_init_socket to name the function, then use the ADM_receive_socket function. This method is used in the sample program for the ADMNET module. The ADM_receive_socket funcition will call the appropriate functions to open the socke and establish the connection. This connection will then remain open for receiving data on that particular socket connection.
As for the use of port 41199, you may need to define the port parameter as an Unsigned INT, instead of just an INT value. The UINT data type will allow for a data value between 0-65535.
|