SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::Net::InetAddress Class Reference

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.
 

Detailed Description

This class is Wrapper of current socket address.

Attention
Not support IpV6.

Definition at line 21 of file InetAddress.h.


The documentation for this class was generated from the following files: