LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can one client send messages to multiple servers?

I am trying to build a fairly complex program and have three servers to handle different aspects of the testing process. (One connencts to my database, one to all my local test system hardware and one to my CAN communication for the UUT) The problem is as of now I have to run three clients to communicate with each server on a different port. Is there any way to connect all three servers on the same port and communicate to them with one client? I have tried to get multiple servers to listen on the same port but that wont work, I am curious if there is some buried function of maybe a more passive way to listen on the same port.

Any help would be greatly appreciated.
Thanks,
Dave
0 Kudos
Message 1 of 2
(2,410 Views)
You can only have one server per port, but since this is LabVIEW, you can make it handle communications for all your programs.

Is this UDP based? Write a generic server that sorts the incoming packets according to source IP or some custom tag in the packet payload to further message it to the correct task via some local mechanism.
(Simplest would be to write some kind of proxy that would listen on one port and resend all packets locally to the real port of each server program. In this solution you don't need to touch the server code at all.)
0 Kudos
Message 2 of 2
(2,398 Views)