#include <SocketAddress.hpp>
Public Member Functions | |
| SocketAddress () | |
| Empty constructor. | |
| SocketAddress (const SocketAddress &sa) | |
| Copy constructor, calls = operator. | |
| ~SocketAddress () | |
| frees address field | |
| SocketAddress (sockaddr *sa, socklen_t l) | |
Creates a SocketAddress with the given address and length. | |
| void | setAddress (const sockaddr *sa, socklen_t l) |
| Set the given address and length. | |
| SocketAddress & | operator= (const SocketAddress &sa) |
| Assignement operator, calls setAddress(const sockaddr* sa, socklen_t l). | |
| bool | operator< (const SocketAddress &sa) const |
| Less than operator, so SocketAddress can be keys of stl maps. | |
| const sockaddr * | getAddressPtr () const |
| Returns a pointer to the socket address. | |
| socklen_t | getAddressLength () const |
| Returns the socket address length. | |
| sa_family_t | getFamily () const |
| Gets the address family of this socket. | |
| CarobNS::SocketAddress::SocketAddress | ( | const SocketAddress & | sa | ) |
Copy constructor, calls = operator.
| sa | the socket address to copy infos from |
| CarobNS::SocketAddress::SocketAddress | ( | sockaddr * | sa, | |
| socklen_t | l | |||
| ) |
Creates a SocketAddress with the given address and length.
Calls setAddress(const sockaddr* sa, socklen_t l)
| sa | the socket address | |
| l | length of sa |
| void CarobNS::SocketAddress::setAddress | ( | const sockaddr * | sa, | |
| socklen_t | l | |||
| ) |
Set the given address and length.
| sa | the socket address to set | |
| l | length of sa |
1.4.7