views:

667

answers:

2

Is there a native way to implement the features provided by the Genuine Channels (http://www.genuinechannels.com) component? Essentially, it provides the same features as the .net remoting component, with the only difference being .net remoting is unidirectional. I am looking for something where, as a client, I could connect to a server, and then pass messages to the server, and then have the server be able to pass messages to the client (whenever the server wanted, without the client calling a function).

Thanks for the help!

+1  A: 

You'll either have to switch roles of the client and server (i.e. who is listening and who writes) or you can open a second socket on the same port to provide your client's server. Your client's server is the thing that would listen for messages from what you call the server, and then [raise events|queue|process] the messages it receives.

Bernhard Hofmann
+1  A: 

WCF has bydirectional surport over TCP as standard.

However WCF does not have bydirectional surport over a single HTTP connection, and the WCF bydirectional HTTP surport does not cope with firewalls.

Ian Ringrose