473,546 Members | 2,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5506

<mi******@yahoo .cawrote in message
news:70******** *************** ***********@d77 g2000hsb.google groups.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.c om.au/program/dotnet/soa/Using-message-queue-services-in-NET/0,339028399,339 274877,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******** *************** ***********@d77 g2000hsb.google groups.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...@h otmail.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.Sock ets; ??

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******** *************** ***********@p25 g2000hsf.google groups.com...
Is it possible to send/receive something like binary data, gif image
and other thing with System.Net.Sock ets; ??

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.c omwrote:
<miche...@yahoo .cawrote in message

news:3d******** *************** ***********@p25 g2000hsf.google groups.com...
Is it possible to send/receive something like binary data, gif image
and other thing with System.Net.Sock ets; ??
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
1997
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. Thanks
1
1712
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 area of memory I am using mailboxes to communicate between two applications. your help will be appreciated With best regrads
11
5513
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
3179
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 just I can make them communicate over the internet. -- Mike
12
1862
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 have an application running 24/7 on a 'base PC' connected to the internet that can send out data (like a monitoring application). It's not...
5
2192
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 continuosly run on server that is watching clients application. than another application that is client application run on many systems. if any one...
3
2229
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 may run different .net framework version. In a completely different project/context i also need to transfers data between 2 applications, but this...
9
5014
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 table rows that has notify status 1 or 2. Thats easy. When the notifier finds a record with 1 it brings up a window like in Outlook when new mail.
4
4533
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 Appli2.exe should be executed when a particular button is pressed in Appli1.exe, but it should know which button has been pressed, therefore i want to...
0
7694
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7792
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6026
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5360
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.