Question about Remoting

  • Thread starter Thread starter Dom Holmes
  • Start date Start date
D

Dom Holmes

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
 
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 said:
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.
 
Back
Top