취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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 포인트
1/2 메시지
2,994 조회수
Duplicate post
Jonathan N.
National Instruments
0 포인트
2/2 메시지
2,983 조회수