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)
{
}