473,399 Members | 2,159 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,399 software developers and data experts.

Remoting with multiple clients

I have a c# program that holds a several objects. I would like this
these objects sent to to several clients using remoting across
seperate machines at a certain times that is determined by the
computer that the object resides on.
I have looked into remoting but I am getting confused as to what
method to use to achieve this kind of result. Can I have several
clients all using the same channel listening for a method call with my
object as a parameter? Which commands would I use to enable this? Any
Guidance would help.

Thnaks
Nick
Nov 16 '05 #1
1 1603
Nick,

Yes, you can do this. You would have to know how to connect to each of
the machines beforehand though. Basically, if you were using the TCP
channel, you would have to know the IP address and the port that they are
listening on (you would have to pick a high-level port that is typically
unused by anything else).

Since this can be a pain to manage, you should have two channels set up.
The main service would have a well known address which all the clients
connect on. Then, they tell the service (through a call), the channel that
they can be called on when the service needs to send out a notification.

You could also do this using interfaces, or events (passing a
MarshalByRefObject back to the service, returning an interface), but it
might get too messy to do.

As for parameters, you can pass anything you wish, as long as it is
either serializable, or derives from MarshalByRefObject, each providing
different semantics.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nick" <ni*********@hotmail.com> wrote in message
news:a0**************************@posting.google.c om...
I have a c# program that holds a several objects. I would like this
these objects sent to to several clients using remoting across
seperate machines at a certain times that is determined by the
computer that the object resides on.
I have looked into remoting but I am getting confused as to what
method to use to achieve this kind of result. Can I have several
clients all using the same channel listening for a method call with my
object as a parameter? Which commands would I use to enable this? Any
Guidance would help.

Thnaks
Nick

Nov 16 '05 #2

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

Similar topics

3
by: JSheble | last post by:
I understand the difference between the two types (Singleton & SingleCall) but what affect does this have if the Remoting Server accepts multiple connections from multiple clients, and they're all...
3
by: S.Creek | last post by:
Hi, I am trying to build a multi clients application with C# that will send and receive messages using a listener on a server, the computers are all on the same LAN, the listener need to...
2
by: Paul Steele | last post by:
I am developing a client/server app and would like to use .NET Remoting to allow the server to communicate with clients. I've been able to test this with a single client, but .NET Remoting seems to...
3
by: Lucas Tam | last post by:
Does anyone have a good articles that describes the pros and cons of Web Services vs. Remoting Hosted in IIS? Is there a reason to use either or? With Remoting Hosting in IIS, is it possible...
4
by: Michael Lindsey | last post by:
I need to write a server app to send images to client GUIs that are outside of the server's domain. The client will have the file system path to the image but can not access the file system. I am...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
1
by: Thomee Wright | last post by:
I'm having a problem with a pair of applications I'm developing. I have a server application which interacts with several instruments, and a client app which connects to the server and provides a...
13
by: José Joye | last post by:
Hello, What is the best way to stop a remoting server (Singleton SAO) that has been started with RemotingConfiguration.Configure(). For sure, I want to do this without quitting the application...
7
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am trying to see if I can call a Library remotely. The library contains a Form that I want to display then pass back some data to user that called this form remotely. I have it working...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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...
0
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,...
0
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...
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.