1. Home
  2. Docs
  3. ObjectDeliverer
  4. Common
  5. How do I switch protocols?

How do I switch protocols?

Simply change the protocol passed to the Start method.

For example, to change from TCP/IP to UDP

// TCP/IP Server
deliverer->Start(UProtocolFactory::CreateProtocolTcpIpServer(9099), ...);

// UDP Sender
deliverer->Start(UProtocolFactory::CreateProtocolUdpSocketSender("192.168.0.100", 9099), ...);