libkipr  1.0.0
Address Class Reference

#include <socket.hpp>

Public Member Functions

 Address (const char *const host, const unsigned short port)
 
 Address (const sockaddr_in &addr)
 
 Address ()
 
bool isValid () const
 
bool setHost (const char *const host)
 
void setPort (const unsigned short port)
 
unsigned short port () const
 
const sockaddr * addr () const
 
socklen_t addrLength () const
 
const char * ip () const
 

Constructor & Destructor Documentation

◆ Address() [1/3]

Address::Address ( const char *const  host,
const unsigned short  port 
)

◆ Address() [2/3]

Address::Address ( const sockaddr_in &  addr)

◆ Address() [3/3]

Address::Address ( )

Member Function Documentation

◆ addr()

const sockaddr* Address::addr ( ) const

◆ addrLength()

socklen_t Address::addrLength ( ) const

◆ ip()

const char* Address::ip ( ) const

◆ isValid()

bool Address::isValid ( ) const

◆ port()

unsigned short Address::port ( ) const

◆ setHost()

bool Address::setHost ( const char *const  host)

◆ setPort()

void Address::setPort ( const unsigned short  port)

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