03-06-2007 09:25 AM
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
03-08-2007 05:46 PM
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