Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get object back from server with .net remoting and Socket connection

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

Scheduled Pinned Locked Moved C#
csharpsysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MahieuBrecht
    wrote on last edited by
    #1

    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 :)

    M 1 Reply Last reply
    0
    • M MahieuBrecht

      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 :)

      M Offline
      M Offline
      Michael J Eber
      wrote on last edited by
      #2

      My suggestion may not be usable by you: First get rid of remoting services and deploy your service as a WCF service. Second make sure your WCF service is NOT deployed as Asynchronous. Third pull the 'black box' into your service so make it a class that you can instantiate and call internally. When your service gets the answer back then return it. In the WCF service your service would be written as if it was an inline method call making the setup quite simple. It also gets rid of the buffering and polling. If you cannot get rid of the black box behaviour then you might be SOL.

      Software Zen: delete this;

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups