rili::service::SocketBase Class Referenceabstract
Inheritance diagram for rili::service::SocketBase:
[legend]

Classes

class  Acceptor
 
class  Connection
 
class  CreateAcceptorBindError
 
class  CreateAcceptorError
 
class  CreateAcceptorResolveError
 
class  CreateConnectionConnectError
 
class  CreateConnectionError
 
class  CreateConnectionResolveError
 

Public Member Functions

virtual std::unique_ptr< ConnectioncreateConnection (std::string const &host, std::uint16_t port)=0
 
virtual std::unique_ptr< AcceptorcreateAcceptor (std::string const &host, std::uint16_t port)=0
 

Member Function Documentation

virtual std::unique_ptr<Acceptor> rili::service::SocketBase::createAcceptor ( std::string const &  host,
std::uint16_t  port 
)
pure virtual

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

Implemented in rili::service::Socket.

virtual std::unique_ptr<Connection> rili::service::SocketBase::createConnection ( std::string const &  host,
std::uint16_t  port 
)
pure virtual

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

Implemented in rili::service::Socket.


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