Get object back from server with .net remoting and Socket connection
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Get object back from server with .net remoting and Socket connection

  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Get object back from server with .net remoting and Socket connection

    Hello,

    I made an application with clients who connect to a server with .Net remoting. The client requests some values from the server and then the server putts all these request in a buffer (buffer is necessary) and emptys them each 500ms, these requests are send to a "black box" on a socket connection, and then the answer of the black box is being send back to the client with an eventhandler.

    Now I have something like

    remoteServer.GetValue(Name);
    which is given back to the client in an event

    But what I want is getting something like this.

    Int32 receivedVal = (Int32)remoteServer.GetValue(Name);

    Does anyone know the solution?
    Thank you

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,830

    Re: Get object back from server with .net remoting and Socket connection

    Not sure what the question is?
    Is it that you are trying to figure out where to send the response to the data in the buffer? If so I normally store an ID value along with the data such as IP, Port or some other identifier.
    Always use [code][/code] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center