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 |