N
Norvin Laudon
....or maybe more of a basic networking question:
I need to create a protocol that will allow multiple instances of my
executable (on one PC only) to synchronize with each other.
i.e.: when a setting in one instance of the program changes, I want all of
the other running instances of that program to get the info, & vice versa.
If I use Sockets, I need to keep a port available to send a message out when
I need to, but also continuously monitor for any incoming messages. I
thought the UDPClient would be a good solution, but the Receive method
blocks until incoming data is available, thereby locking up the port if I
need to send something out.
It looks like I could do this with the Socket class, TCP protcol, and async
read methods, but it seems more complicated than I require.
Is there a simpler way to send and recieve messages between applications? If
not, perhaps a good sample out there on asynchronously reading network
streams?
TIA,
Norvin
I need to create a protocol that will allow multiple instances of my
executable (on one PC only) to synchronize with each other.
i.e.: when a setting in one instance of the program changes, I want all of
the other running instances of that program to get the info, & vice versa.
If I use Sockets, I need to keep a port available to send a message out when
I need to, but also continuously monitor for any incoming messages. I
thought the UDPClient would be a good solution, but the Receive method
blocks until incoming data is available, thereby locking up the port if I
need to send something out.
It looks like I could do this with the Socket class, TCP protcol, and async
read methods, but it seems more complicated than I require.
Is there a simpler way to send and recieve messages between applications? If
not, perhaps a good sample out there on asynchronously reading network
streams?
TIA,
Norvin