Re: Raise event to client
- From: Goran Sliskovic <gsliskov@xxxxxxxxx>
- Date: Sat, 06 Jan 2007 00:32:57 +0100
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
.
- References:
- Raise event to client
- From: Le Minh
- Raise event to client
- Prev by Date: Re: Raise event to client
- Next by Date: Re: Receiving notification from Singleton after the client crash
- Previous by thread: Re: Raise event to client
- Next by thread: Problem using remote controls
- Index(es):
Relevant Pages
|
Loading