LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Example of ConnectToTCPServer function's void *callbackData parameter?

I am trying to use the ConnectToTCPServer function's void *callbackData parameter as a method of determining which of several tcpip servers has reponded to my client.
 
I am using the function as shown below:
 
[...]
 
 had_err = ConnectToTCPServer(&interface[portid].tcpip_handle,
        interface[portid].socket,
        interface[portid].ip_address,
        Net2SerialCallback,
        (void *) &test,
        //(void *) &portid,
        interface[portid].timeout_msec
       );
[...]
 
And my call back function is something like below:
 
int CVICALLBACK Net2SerialCallback (unsigned handle, int event, int error, void *callbackData) 
{
 
   
 
}
0 Kudos
Message 1 of 2
(2,878 Views)
Duplicate post
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(2,867 Views)