Addresses, like STL strings, may be passed and copied by value.
|
Public Methods |
| Address () |
| Constructs an empty Address.
|
| Address (const void *addr, socklen_t len) |
| Constructs an Address from a block of data.
|
const sockaddr * | data () const |
| Returns a pointer to the data as a sockaddr.
|
socklen_t | length () const |
| Returns the length of the Address structure.
|
const string & | data_as_string () const |
| Returns the Address structure as a string.
|
| operator const void * () const |
| Returns a non-null pointer if and only if this Address is non-empty.
|
string | as_string () const |
| Returns a human-readable version of the string.
|
| NMSTL_ARITH_OPS (Address, data_as_string()) |
| NMSTL_SIMPLY_SERIALIZABLE (Address,<< addr) |
Protected Attributes |
string | addr |