rili::service::SocketBase Class Referenceabstract
Inheritance diagram for rili::service::SocketBase:
Classes | |
class | Acceptor |
class | Connection |
class | CreateAcceptorBindError |
class | CreateAcceptorError |
class | CreateAcceptorResolveError |
class | CreateConnectionConnectError |
class | CreateConnectionError |
class | CreateConnectionResolveError |
Public Member Functions | |
virtual std::unique_ptr< Connection > | createConnection (std::string const &host, std::uint16_t port)=0 |
virtual std::unique_ptr< Acceptor > | createAcceptor (std::string const &host, std::uint16_t port)=0 |
Member Function Documentation
|
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.
|
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