LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TCPIP Socket Connections

I have successfully created 16 TCPIP sockets using the CVI libs. I created an additional socket with the same IP/port as my 16th socket. 
The callback event does not 'fire' At All for this socket(ex. TCP_DATA_READY).  What could be the problem even though I have
double checked to ensure the code is OK, both sockets access the same server and is successful in making a connection/disconnect.
Is there some place/location/registry that can be checked to ensure the Callback is 'registered' ?  Any help greatly appreciated
Rtyson
0 Kudos
Message 1 of 3
(3,497 Views)

Hi,

Please change TCP_DATA_READY to TCP_DATAREADY. Hope this might be the problem.

Regards,

Rajesh.

 

0 Kudos
Message 2 of 3
(3,458 Views)

Hi.

I believe your problem is caused by attempting to use the same combination of host/protocol/port twice. How can the system know which callback funtion to invoke when a message is received?

If you need to re-use a combination, you must first call DisconnectFromTCPServer() on the original conversation.

Good luck,
Colin.
0 Kudos
Message 3 of 3
(3,450 Views)