rili::service::Socket Class Reference
Inheritance diagram for rili::service::Socket:
Collaboration diagram for rili::service::Socket:
Public Member Functions | |
std::unique_ptr< Connection > | createConnection (std::string const &host, std::uint16_t port) override |
std::unique_ptr< Acceptor > | createAcceptor (std::string const &host, std::uint16_t port) override |
Static Public Member Functions | |
static SocketBase & | instance () |
Member Function Documentation
|
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.
|
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 |
The documentation for this class was generated from the following file:
- rili/service/Socket.hpp