Remoting objects with events using TCP protocol in C++
I wrote a simple server application which remotes an object. The client application can register its own events to receive notifications from the server when the object status changes.
Everything works fine while using the http protocol. But I get the follwing error firing events in the server if I switch to tcp protocol
This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server.
Is it possibile to remote objects with events using TCP protocol?
Following the configuration files for the server and client
Server
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="5555">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
<service>
<wellknown mode="Singleton" type="Server.Broadcaster, Server" objectUri="Broadcaster.soap" />
</service>
</application>
</system.runtime.remoting>
</configuration>
Client
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" />
</channels>
<client>
<wellknown type="General.IBroadcaster, General"
url="tcp://localhost:5555/Broadcaster.soap" />
</client>
</application>
</system.runtime.remoting>
</configuration>
Thanks
Marco

