473,216 Members | 1,188 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,216 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 5470

<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Anand Ganesh | last post by:
Hi All, How will I make a VB6 application communicate with my VC#.NET application? I want the information to be passed back and forth between these two applications? Any suggestions please....
1
by: Qumer Mumtaz Goraya | last post by:
Hi How can I communicate between IE and an other application.I am able to communicate between two applications of mine but confused how to do this with IE.I just wanna know how IE get the shared...
11
by: kd | last post by:
Hi All, Can anybody suggest as to what is the best way communicate between 2 applications residing on the same machine? Thanks. kd
6
by: Mike9900 | last post by:
How can I connect my .NET app which use remoting to communicate over internet, 2 instance of the same app? My app is already done using .NET Remoting. I am wondering if to change them to WCF or...
12
by: MrQuan | last post by:
G'day all, I have a requirement to communicate between two or more PCs over the Internet, however I have no idea how to go about this. I'm not talking about a chat programme as such, I want to...
5
by: sekarm | last post by:
Hi all, Happy to see you all again, I am going to develop one client server application using dotnet(vb.net or c#.net).The task is to develop two applications seperately. one application...
3
by: SQACSharp | last post by:
Hi, I need to transfer text (or maybe binary) data from one .net application to another .net application. What is the best way to do this since it's on the same computer and both application...
9
by: Johnny E. Jensen | last post by:
Hello NG I have two applications. App1: Database application. Inserts/updates data to database. App2: Notifier: The notifier checks if a record has been created or modified, by loading the...
4
by: hashc | last post by:
hi i want to be able to have two applications in c# visual studio.net 2008 to be able to communicate with each other by passing parameters. for example; Appli1.exe is a form with 4 buttons...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...

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.