Represents socket's address list and a port. More...
#include <socket.h>
Public Member Functions | |
| socket_address () | |
| Constructor (default). | |
| socket_address (const std::string &addr) | |
| Constructor (parameterized). | |
| socket_address (const std::string &address, int port) | |
| Constructor (parameterized). | |
| void | parse (const std::string &addr) |
| Parse the address in format "address[:port]". | |
Public Attributes | |
| int | port |
| std::string | host |
Represents socket's address list and a port.
| dbp::socket_address::socket_address | ( | const std::string & | addr | ) | [inline] |
Constructor (parameterized).
| addr | the socket address in format "address[:port]" |
References parse().
| dbp::socket_address::socket_address | ( | const std::string & | address, | |
| int | port | |||
| ) | [inline] |
Constructor (parameterized).
| host | the socket ip address or host name | |
| port | the socket port number |
| void dbp::socket_address::parse | ( | const std::string & | addr | ) |
Parse the address in format "address[:port]".
| addr | the socket address in format "address[:port]" |
Referenced by socket_address().