InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | Public Attributes | List of all members
irc::sockets::sockaddrs Union Reference

Public Member Functions

int sa_size () const
int port () const
std::string addr () const
std::string str () const
bool operator== (const sockaddrs &other) const
bool operator!= (const sockaddrs &other) const

Public Attributes

struct sockaddr sa
struct sockaddr_in in4
struct sockaddr_in6 in6

Member Function Documentation

std::string irc::sockets::sockaddrs::addr ( ) const

Return IP only

int irc::sockets::sockaddrs::port ( ) const

Return port number or -1 if invalid

int irc::sockets::sockaddrs::sa_size ( ) const

Return the size of the structure for syscall passing

std::string irc::sockets::sockaddrs::str ( ) const

Return human-readable IP/port pair

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