OpenDaVINCI  4.15.3
odcore::io::tcp::TCPFactory Struct Reference

#include <TCPFactory.h>

Static Public Member Functions

static std::shared_ptr
< TCPAcceptor
createTCPAcceptor (const uint32_t &port)
 
static std::shared_ptr
< TCPConnection
createTCPConnectionTo (const string &ip, const uint32_t &port)
 

Member Function Documentation

std::shared_ptr< TCPAcceptor > odcore::io::tcp::TCPFactory::createTCPAcceptor ( const uint32_t &  port)
static

This method creates a TCP acceptor listening on the specified port.

Parameters
portto listen on.

References odcore::wrapper::TCPFactoryWorker< product >::createTCPAcceptor().

Referenced by odcore::io::ConnectionAcceptor::ConnectionAcceptor().

std::shared_ptr< TCPConnection > odcore::io::tcp::TCPFactory::createTCPConnectionTo ( const string &  ip,
const uint32_t &  port 
)
static

This method creates a TCP connection to the specified IP address and port.

Parameters
ipIp address to connect to.
portto connect to.

References odcore::wrapper::TCPFactoryWorker< product >::createTCPConnectionTo().

Referenced by odcore::io::Connection::Connection().