473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

sockets question...

....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
Nov 16 '05 #1
2 1042
Norvin Laudon wrote:

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?


http://www.codeproject.com/csharp/Do...PipesPart1.asp
Nov 16 '05 #2
Hi

In case anyone is interested, I found a great article which describes a very
_simple_ way of passing serializable data between two applications on the
same machine.

http://www.vbaccelerator.com/home/NE...on/article.asp

(The "Named Pipes" sample suggested in the message below is anything but
simple...)

NL
"bowman" <bo****@montana.com> wrote in message
news:36*************@individual.net...
Norvin Laudon wrote:

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?


http://www.codeproject.com/csharp/Do...PipesPart1.asp


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: 0to60 | last post by:
I have a question about socket programming in general. Exactly what happens behind the scenes when I one socket connects to a different socket in listen mode? Using the dotnet framework, I...
7
by: Bill English | last post by:
How do I send an object from one computer to another? -- I am a 14 year old C# developer, I am completely self taught, so please don't get mad if I ask a stupid question. Thanks.
4
by: 0to60 | last post by:
I have a question about socket programming in general. Exactly what happens behind the scenes when I one socket connects to a different socket in listen mode? Using the dotnet framework, I...
3
by: derSchweiz | last post by:
Hi, Experimenting with sockets, and I think I got it half working. I have the following code: Private Sub socket_receive(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
0
by: richard.charts | last post by:
Well, unfortunately, I couldn't get any answer on the msdn forums, so I'll give it a shot here. Real question at the bottom....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.