Archived

This forum has been archived. Please start a new discussion on GitHub.

Channel Control

Is it possible to control change the underlying transport mechanism during runtime.
Either let some communication use UDP and TCP/IP simultanously
or change the communication protocol during runtime?
Best Regards,
Kristian Lippert

Comments

  • marc
    marc Florida
    Sure, all you need is a proxy with two endpoints, one for TCP and one for UDP. Then you can select whether you want to use TCP or UDP with the proxy's ice_twoway/ice_oneway (for TCP) or ice_datagram (for UDP) methods. On the server side, you must configure your object adapter with both a UDP and a TCP endpoint. demo/Ice/hello demonstrates how to do this.