473,406 Members | 2,439 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,406 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 5493

<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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.