OpenDaVINCI  4.16.0
odcore::wrapper::UDPFactoryWorker< product > Class Template Reference

#include <POSIXUDPReceiver.h>

Static Public Member Functions

static odcore::io::udp::UDPSendercreateUDPSender (const string &address, const uint32_t &port)
 
static
odcore::io::udp::UDPReceiver
createUDPReceiver (const string &address, const uint32_t &port)
 

Detailed Description

template<odcore::wrapper::NetworkLibraryProducts product>
class odcore::wrapper::UDPFactoryWorker< product >

This template class provides factory methods to the UDPFactory. The factory methods' implementations for different products have to be defined in specializations of the UDPFactoryWorker template class.

UDPFactory, UDPFactoryWorker, NetworkLibraryProducts, Win32UDPFactoryWorker, POSIXUDPFactoryWorker

Member Function Documentation

template<odcore::wrapper::NetworkLibraryProducts product>
static odcore::io::udp::UDPReceiver* odcore::wrapper::UDPFactoryWorker< product >::createUDPReceiver ( const string &  address,
const uint32_t &  port 
)
static

This method creates a UDP receiver.

Parameters
addressAddress to bind on.
portPort.
Returns
A new UDPReceiver

Referenced by odcore::io::udp::UDPFactory::createUDPReceiver().

template<odcore::wrapper::NetworkLibraryProducts product>
static odcore::io::udp::UDPSender* odcore::wrapper::UDPFactoryWorker< product >::createUDPSender ( const string &  address,
const uint32_t &  port 
)
static

This method creates a UDP sender.

Parameters
addressAddress.
portPort.
Returns
A new UDPSender

Referenced by odcore::io::udp::UDPFactory::createUDPSender().