LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ca

n I create a server application that can support multiple clients in the same PC by using TCP library service. Is there a client handle function that I can use to assign to each client, so that the server know which client it can talk and listen to. ThanksIs there a bottle neck by using TCP(using LabWindow CVI) to create a server and multiple clients applications. Can DDE support this ? Thanks
0 Kudos
Message 1 of 3
(3,024 Views)
n I create a server application that can support multiple clients in the same PC by using TCP library service. Is there a client handle function that I can use to assign to each client, so that the server know which client it can talk and listen to. ThanksYou can call RegisterTCPServer more times to establish more than one conversations with your clients, each identified by a different port and a different conversation handle.

You have two choices:
- use a separate callback function for each conversation (each time you call RegisterTCPServer)
- use the same callback function for all conversations and differentiate between the by for example callbackData parameter set when registering the function (look at the on line help for this parameter in RegisterTCPServer)

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,024 Views)
n I create a server application that can support multiple clients in the same PC by using TCP library service. Is there a client handle function that I can use to assign to each client, so that the server know which client it can talk and listen to. ThanksDo I understand this correctly? Are you saying that in my server, I must open a different port number for each one of the clients? If so, how would a client know which port IT should open? A TCP connection requires an IP+Port. If the IP is different for two PC's can't I use the same port?
0 Kudos
Message 3 of 3
(3,024 Views)