rasdaman complete source
|
#include <akgnet_inetaddr.hh>
Public Member Functions | |
SocketAddress () throw () | |
Default constructor. More... | |
SocketAddress (sockaddr_in &) throw () | |
Constructor taking a 'sockaddr_in'. More... | |
void | init (sockaddr_in &) throw () |
Initialization from a 'sockaddr_in'. More... | |
bool | isValid () const throw () |
Returns true if the object is initialized. More... | |
HostAddress | getHostAddress () const throw () |
Returns the HostAddress of this socket. More... | |
uint32_t | getAddress () const throw () |
Returns the IP Address. More... | |
int | getPort () const throw () |
This class represents the IP address of a OS socket and envelops the OS data structure 'sockaddr_in'
akg::SocketAddress::SocketAddress | ( | ) | ||
throw | ( | |||
) |
Default constructor.
akg::SocketAddress::SocketAddress | ( | sockaddr_in & | ) | ||
throw | ( | ||||
) |
Constructor taking a 'sockaddr_in'.
uint32_t akg::SocketAddress::getAddress | ( | ) | const | |
throw | ( | |||
) |
Returns the IP Address.
HostAddress akg::SocketAddress::getHostAddress | ( | ) | const | |
throw | ( | |||
) |
Returns the HostAddress of this socket.
int akg::SocketAddress::getPort | ( | ) | const | |
throw | ( | |||
) |
void akg::SocketAddress::init | ( | sockaddr_in & | ) | ||
throw | ( | ||||
) |
Initialization from a 'sockaddr_in'.
bool akg::SocketAddress::isValid | ( | ) | const | |
throw | ( | |||
) |
Returns true if the object is initialized.