Re: Raise event to client



Le Minh wrote:
Hi all.
I need to write a application using .net remoting technology. The problem here it that, i need to raise event to client. Image, server do some work and send result to the client when it finished. How can i do it ?
Thanks all!


There are examples for that on .NET, but take into consideration that ..NET remoting channel is not bi-directional. Meaning, events are not coming back on the same established connection, but rather client establishes new connection back to server to send events. This has serious implications in routed/firewalled/NAT-ed enviroment - often connection back to server from client side will not be possible. There are 3rd party imlpementations that offer bi-directional channels (Gennuine channels for example). I have not used any, so I cannot gurantee it works.

Easiest way to send events back in remoting (if you still wish to do it) is to pass a marshal by ref object to server (which mast be serializable). When server invokes methods on received marshal by ref object, it will be passed to the client. I'm sure there are examples on the internet.

Regards,
Goran

.



Relevant Pages

  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)

Loading