473,395 Members | 1,456 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,395 software developers and data experts.

Question about Remoting

If I setup a simple remote example with a Server object that creates a
RemoteObject which is then accessed by a Client object, is there any way I
could give the RemoteObject access to the Client object?

I basically need the Client to access the RemoteObject's methods and vice
versa.
Many thanks
Nov 15 '05 #1
2 853
Hello

Yes you can.
1 - derive the client object as a MarshalByRefObject,
2 - create a method in the server object that accepts an object of the
client type as a parameter
3 - call your method, and pass the client object as a parameter to the
method,

now the server can have a reference to the client object and can use it to
call it.

Best regards
Sherif
"Dom Holmes" <sp******@gotadsl.co.uk> wrote in message
news:3f*********************@mercury.nildram.net.. .
If I setup a simple remote example with a Server object that creates a
RemoteObject which is then accessed by a Client object, is there any way I
could give the RemoteObject access to the Client object?

I basically need the Client to access the RemoteObject's methods and vice
versa.
Many thanks

Nov 15 '05 #2
Dom Holmes wrote:
If I setup a simple remote example with a Server object that creates a
RemoteObject which is then accessed by a Client object, is there any way I
could give the RemoteObject access to the Client object?

I basically need the Client to access the RemoteObject's methods and vice
versa.


Yes, it is possible. See SDK examples, I believe there is an example,
but I can't recall which exactly.

Vadim Chekan.

Nov 15 '05 #3

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

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
0
by: Nadav | last post by:
Hi, Introduction: ******************** I am using remoting to expose the control channels of my streaming server, I need to be able to detect when a certain client was terminated, this should...
0
by: Nicolas | last post by:
Hi, I have a question concerning .NET Remoting. I walked through a couple of examples in books and on the internet concerning .NET Remoting and in every code sample I find the following code...
2
by: Michael Isaacs | last post by:
Is there any way to share an object or variable between applications other than through .NET remoting? Also, if this is the only way, what kind of overhead is there for storage (memory) and speed...
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...
11
by: jason | last post by:
we have developed a .NET class library that defines a family of reusable business objects. the class library is developed in C#, and works quite well. one problem, however, is that as more and...
2
by: Ken Ross | last post by:
I'm in the early stages of working up the design for a large .Net web application and want to make sure that we have the best possible physical architecture to support the logical architecture and...
2
by: Ryan | last post by:
My apologies if this is not the forum to post questions regarding .NET Remoting, but I figured WebServices would be the most appropriate forum of the bunch. We're currently completely re-arching...
10
by: CCLeasing | last post by:
How do I communicate between different user instances of my windows forms project? Im trying to write a program that will run on a network of 15 pcs. 5 of the pc's will run the admin part of...
0
by: Rich | last post by:
I have a simple test case using a remote object. When I run with server and client on the same PC everything works fine. When I run the client on another PC, the remote object works, but when the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.