Communicate between many C# applications

M

michelqa

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
 
M

Mr. Arnold

I

Israel

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.
 
M

michelqa

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!
 
M

michelqa

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 ?
 
M

Mr. Arnold

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.
 
M

michelqa

.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.
 
M

michelqa

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top