LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP Multiclient Handle Error

I am writing a multiclient-server program based on TCP/IP in CVI v. 8. And I took the server.prj as example

I have an connection issue, because the server does not get the client handle. My clients are not  PC’s, they are wifi Embedded Devices and I can not create an identifier as is done with a PC, I just get the IP.

 

The error is generated into ServerTCPCB function that gets the handle (I attached image):

int CVICALLBACK ServerTCPCB (unsigned handle, int event, int error, void *callbackData)

When I have a client  I can get the information correctly, but when I add another client I can not know who is sending the information. Is there a function that just uses the IP to send and to receive info or what could you suggest me to solve this issue?

 

Regards,

 

Mauricio

0 Kudos
Message 1 of 2
(3,095 Views)

Hi mhhernand,

Have you looked at the CVI shipping example that shows you how to handle multiple client connections?  You can find it at c:\....\CVI\samples\tcp\MultiClientServer.prj.  Hopefully, this example will be of some use in solving your problem.

Regards,

Erin

NI Mexico

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