473,881 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inter-Appication Communication

Dear All:

I am trying to write an application that consist 2 executables

1) Server.exe
2) Client.exe

I start the server.exe first and then start the two client exe by code and
kill both of the client when the server exit (This is already done)

The question is I want to pass an array of object from the server to the
client and the client will read the list dp some process. The client will
return a processed list back to the server.

Can someone suggest a way to do it in C#?

Thank you very much in advance for any suggestions.

Viper Venom
Nov 16 '05 #1
4 4966
sure, use remoting. Here is an example of a single remoting server.

http://www.glacialcomponents.com/Art...D=RemoteObject

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com
On Thu, 27 May 2004 00:33:21 +0800, "Viper Venom"
<vi*********@ma il.com> wrote:
Dear All:

I am trying to write an application that consist 2 executables

1) Server.exe
2) Client.exe

I start the server.exe first and then start the two client exe by code and
kill both of the client when the server exit (This is already done)

The question is I want to pass an array of object from the server to the
client and the client will read the list dp some process. The client will
return a processed list back to the server.

Can someone suggest a way to do it in C#?

Thank you very much in advance for any suggestions.

Viper Venom


Nov 16 '05 #2
Hi Viper,

I think Allen has provided you the correct information about how to do
inter-application communication(M ore precision, inter-appdomain or
inter-process communication).

Beside remoting, you also can leverage System.Net namespace to use socket
to do the data transformation. But the difference is that socket is a low
level protocol, which know nothing about .Net object, so you have to
implement the serialization and de-serialization yourself.

At this point, I suggest you to take Allen's suggestion to use Remoting,
which is tailored for .Net, and is strong typed for .Net objects. It will
encapsulate some protocol to do the serialization/de-serialization itself,
so it is much easy for use.

I will also introduce some General information to you:

In Win32, there are many technical to implement inter-process
communication, such as WM_COPYDATA message, Memory Mapping File, Named Pipe
etc.., but they are all unmanaged technical and know nothing about .Net
managed classes.
In .Net, it introduces 2 technicals to access through AppDomain boundary:
.Net Remoting and Web Service. These 2 technicals have different usage,
remoting is more suitable for Client/Server structure application. Remoting
gives you the choice to use different protocol to transform data, such as
SOAP http or TCP.

After general information, I suggest you find some resource document or
book for Remoting to learn some detail information.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #3
Thank you very much for your reply, I will take a look at it.

Viper Venom

"Allen Anderson" <al***@sparkysy stems.com> wrote in message
news:kj******** *************** *********@4ax.c om...
sure, use remoting. Here is an example of a single remoting server.

http://www.glacialcomponents.com/Art...D=RemoteObject

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com
On Thu, 27 May 2004 00:33:21 +0800, "Viper Venom"
<vi*********@ma il.com> wrote:
Dear All:

I am trying to write an application that consist 2 executables

1) Server.exe
2) Client.exe

I start the server.exe first and then start the two client exe by code andkill both of the client when the server exit (This is already done)

The question is I want to pass an array of object from the server to the
client and the client will read the list dp some process. The client will
return a processed list back to the server.

Can someone suggest a way to do it in C#?

Thank you very much in advance for any suggestions.

Viper Venom

Nov 16 '05 #4
Thank you very much for you detail reply.
I think I will go for the Remoting approach.

Viper Venom
""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
news:bN******** *****@cpmsftngx a10.phx.gbl...
Hi Viper,

I think Allen has provided you the correct information about how to do
inter-application communication(M ore precision, inter-appdomain or
inter-process communication).

Beside remoting, you also can leverage System.Net namespace to use socket
to do the data transformation. But the difference is that socket is a low
level protocol, which know nothing about .Net object, so you have to
implement the serialization and de-serialization yourself.

At this point, I suggest you to take Allen's suggestion to use Remoting,
which is tailored for .Net, and is strong typed for .Net objects. It will
encapsulate some protocol to do the serialization/de-serialization itself,
so it is much easy for use.

I will also introduce some General information to you:

In Win32, there are many technical to implement inter-process
communication, such as WM_COPYDATA message, Memory Mapping File, Named Pipe etc.., but they are all unmanaged technical and know nothing about .Net
managed classes.
In .Net, it introduces 2 technicals to access through AppDomain boundary:
Net Remoting and Web Service. These 2 technicals have different usage,
remoting is more suitable for Client/Server structure application. Remoting gives you the choice to use different protocol to transform data, such as
SOAP http or TCP.

After general information, I suggest you find some resource document or
book for Remoting to learn some detail information.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2933
by: Zunbeltz Izaola | last post by:
Hi I'm writting a program to get data from a machine. I'm using wxPython to build the GUI. I've a mehtod in a class that get the data, something like this: data = def Measure(self): do somehting... while ...
1
1832
by: David M. Karr | last post by:
I've been asked to help debug a complex problem involving inter-frame references, so I just want to understand the elements involved with this. Apparently, there is a page with multiple frames, where one of the frames is a "hidden" frame, and is there just to contain one or more "fields" that are referenced from other frames. Supposedly, if a user "sits" somewhere in this set of pages for several minutes and then tries to do...
13
4164
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make sense to punch out from managed code to native code (I was using IJW) in order to do some amount of floating point work and, if so, what that certain amount of floating point work was approximately. To attempt to do this I made a program that...
6
16725
by: les | last post by:
Here's a class which uses 2.0 generics to implement an inter-thread message queue in C#. Any number of threads can post and read from the queue simultaneously, and the message object can be any type. There's a test driver at the bottom which demonstrates usage. /*-----------------------------------------------------------------------------------------------------*/ using System; using System.Collections.Generic;
7
4600
by: Sumedh | last post by:
Hi everyone There is a C# project which calls C++/CLI dll to be able to call native C++ including templates. But the C++/CLI code itself also requires the C# dll to get the types. For example: C#: class Test1 {
1
4970
by: Laurence | last post by:
Hi folks, As I konw: database partition (aka data partition?), the database can span multiple machines; table partition, the data within a table can seperate by certain condition. How about inter-partition and intra-partition? Is inter-partition database partition...?
1
4166
by: halekio | last post by:
Hi all, Please bear with me as I've only started programming in C# 2 weeks ago and this is my first contact with OOP. I ran into a situation where I needed to catch an event in an object that had no connection or reference to the object that triggered it. It goes something like this: (not syntactically correct..it's just for the idea)
0
1494
by: rkprasad | last post by:
I am able to create BASIC-CLEAR-INTEGRATED sql http endpoint and consume it on a LAN. But i am not able to consume the created endpoint on inter domain network. If i create endpoint on a server having live IP and try to access it as http://59.165.20.29/SqlHttpEndPointPath?WSDL from a LAN which has its own proxy then I am not able to access it ; and get HTTP 500/HTTP 501 error in the browser. In a different way i create an sql http endpoint...
1
2220
by: rsennat | last post by:
Hi, what is the order of the libraries in the Makefile, for linking inter dependent libraries. i'm getting linker error for the following scenario. I have lib1.a and lib2.a, with which lib1.a needs lib2.a and lib2.a needs lib1.a for linking. How can this be resolved. any thoughts on this would be helpful. thanks rsennat
0
1298
by: Rakeshashapur | last post by:
hi, i'm using grid view in vs 2008. i want to inter chang the columns by drag and drop.(similary to reordered list extender of Ajax control tool kit). please any one explain me how to do this. (if posible give me a example code) thank you.....
0
9776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11098
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10814
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10401
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9552
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7953
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5781
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4196
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.