This class is Wrapper of current socket address. More...
#include <InetAddress.h>
Public Member Functions | |
| InetAddress (uint16_t port=0, std::string ip="127.0.0.1") | |
| Constructor Function. | |
| InetAddress (const sockaddr_in &addr) | |
| Constructor Function. | |
| virtual | ~InetAddress ()=default |
| Destructor Function. | |
| std::string | ToIP () const |
| Get IP from Socket Address. | |
| std::string | ToIPPort () const |
| Get IP and Port from Socket Address. | |
| uint16_t | ToPort () const |
| Get Port and Port from Socket Address. | |
| const sockaddr_in * | GetSockAddress () const |
| Get Socket Address. | |
| sockaddr_in * | GetSockAddress () |
| Get Socket Address. | |
| void | SetSockAddress (const sockaddr_in &addr) |
| Set Socket Address. | |
Private Attributes | |
| sockaddr_in | m_Address |
| Socket Address. | |
This class is Wrapper of current socket address.
Definition at line 21 of file InetAddress.h.