Inheritance diagram for rili::service::Socket:
[legend]
Collaboration diagram for rili::service::Socket:
[legend]

Public Member Functions

std::unique_ptr< ConnectioncreateConnection (std::string const &host, std::uint16_t port) override
 
std::unique_ptr< AcceptorcreateAcceptor (std::string const &host, std::uint16_t port) override
 

Static Public Member Functions

static SocketBaseinstance ()
 

Member Function Documentation

std::unique_ptr<Acceptor> rili::service::Socket::createAcceptor ( std::string const &  host,
std::uint16_t  port 
)
overridevirtual

createAcceptor try create TCP/IP acceptor which will be able to accept incoming connections on given host and port

Parameters
host
port
Returns
new acceptor object
Note
this function might throw in case of failures

Implements rili::service::SocketBase.

std::unique_ptr<Connection> rili::service::Socket::createConnection ( std::string const &  host,
std::uint16_t  port 
)
overridevirtual

createConnection try create TCP/IP connection to given host and port

Parameters
host
port
Returns
new connection object
Note
this function might throw in case of failures

Implements rili::service::SocketBase.

static SocketBase& rili::service::Socket::instance ( )
static

instance is used to access instance of Socket.

Returns
instance of Socket.

The documentation for this class was generated from the following file:
  • rili/service/Socket.hpp