Question about Remoting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dom Holmes

    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


  • Sherif ElMetainy

    #2
    Re: Question about Remoting

    Hello

    Yes you can.
    1 - derive the client object as a MarshalByRefObj ect,
    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" <speedsix@gotad sl.co.uk> wrote in message
    news:3fc28e94$0 $112$65c69314@m ercury.nildram. net...[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Vadim Chekan

      #3
      Re: Question about Remoting

      Dom Holmes wrote:
      [color=blue]
      > 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.[/color]

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

      Vadim Chekan.

      Comment

      Working...