471,348 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Communicate between many C# applications

Hi,

I need to communicate between many C# applications.

is tcp socket is the best way to do this? Only the main application
that send the initial request can be a remote application in a local
network

Ex:

the main application need to send a request (the same) to applications
A, B and C

Applications A,B and C need also to communicate with 3 other
applications (D, E and F) to accomplish the request

When application D, E and F finally execute te request they return
the result of the request to application A , B and C and then return
the result to the main application.
This is not a usual thing to do I know....
I try to do this based on the following simple C# socket example :
http://www.csharphelp.com/archives/archive127.html

I suppose a need to use a different port for each communication...but
in this case i will need to listen 6 port...this make no sense.

I try to find something else for the communication between
applications A,B, C and D,E,F since applications are running on the
same machine.

Any ideas ???

Thanks,

Mike
Jun 27 '08 #1
8 5269

<mi******@yahoo.cawrote in message
news:70**********************************@d77g2000 hsb.googlegroups.com...
>
I need to communicate between many C# applications.

I try to find something else for the communication between
applications A,B, C and D,E,F since applications are running on the
same machine.

Any ideas ???
<http://www.builderau.com.au/program/dotnet/soa/Using-message-queue-services-in-NET/0,339028399,339274877,00.htm>

<http://www.codeproject.com/KB/dotnet/mgrmsmq.aspx>

http://www.eggheadcafe.com/articles/20050831.asp

http://www.codeproject.com/KB/IP/Net_Remoting.aspx

Jun 27 '08 #2

<mi******@yahoo.cawrote in message
news:70**********************************@d77g2000 hsb.googlegroups.com...

Oh, one other thing, you could also use .NET WCF and a Named Pipe to
communicate between the applications running on the same machine too.

http://msdn.microsoft.com/en-us/library/aa365590.aspx
http://www.omegacoder.com/?p=101

Jun 27 '08 #3
On Jun 16, 8:15*am, miche...@yahoo.ca wrote:
is tcp socket is the best way to do this? *Only the main application
that send the initial request can be a remote application in a local
network
I'm not quite sure what you mean by "Only the main application..."?

The product I work on has two exe's which communicate back and forth
with each other via remoting. Remoting seems like the easiest
solution rather than managing the sockets yourself.


Jun 27 '08 #4
On Jun 16, 11:58*am, Israel <israeldip...@hotmail.comwrote:
I'm not quite sure what you mean by "Only the main application..."?
I mean the user see only ONE application, the main application. All
other applications are hidden windows/process.
Thanks Mr. Arnorld, this is exactly what I need :) .NET WCF cannot be
an option since other application can use different .Net framework
version.

Thanks again!
Jun 27 '08 #5
Is it possible to send/receive something like binary data, gif image
and other thing with System.Net.Sockets; ??

What should I use to transfer non text data from one machine to
another ?

Jun 27 '08 #6

<mi******@yahoo.cawrote in message
news:3d**********************************@p25g2000 hsf.googlegroups.com...
Is it possible to send/receive something like binary data, gif image
and other thing with System.Net.Sockets; ??

What should I use to transfer non text data from one machine to
another ?
..Net Remoting using a binary formatter or with MSMQ doing the same. You
should think of *objects* being sent. Objects can contain data, be binary
objects and serialized objects can be sent and desterilized -- think object
oriented programming.
Jun 27 '08 #7
On Jun 16, 10:19*pm, "Mr. Arnold" <MR. Arn...@Arnold.comwrote:
<miche...@yahoo.cawrote in message

news:3d**********************************@p25g2000 hsf.googlegroups.com...
Is it possible to send/receive something like binary data, gif image
and other thing with System.Net.Sockets; ??
What should I use to transfer non text data from one machine to
another ?

.Net Remoting using a binary formatter or with MSMQ doing the same. You
should think of *objects* being sent. Objects can contain data, be binary
objects and serialized objects can be sent and desterilized -- think object
oriented programming.
You are so right... I will keep in mind your last advise ;o)

Ok so at least I know that I'm on the right direction, I have to go
back learning Net remoting and MSMQ...

thanks again for your time and great advises.
Jun 27 '08 #8
MSMQ need to be installed on the targeted machine....Net remoting
seems to be a better option.

The main application (client) communicate with 3 other applications
A,B,C (server)

Questions :
- Is it possible to send requests to the 3 other application without
using a different ports? Is there a way to distinguish A,B and C
server without hhaving to listen different port?
Jun 27 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by MrQuan | last post: by
3 posts views Thread by SQACSharp | last post: by
9 posts views Thread by Johnny E. Jensen | last post: by

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.