#include <sockaddr.h>
Inheritance diagram for socklibpp::addr:
Public Types | |
enum | family { af_unspec, af_unix, af_inet, af_inet6, af_max } |
Address families. More... | |
Protected Member Functions | |
addr (struct sockaddr *_d, int _s) throw () | |
Constructor that sets the internal pointer and size. | |
virtual void | reset ()=0 throw () |
Resets the size of the internal sockaddr reprentation. | |
sockaddr * | data () |
Returns a pointer to the sockaddr representation. | |
sockaddr * | data () const |
Returns a read-only pointer to the sockaddr representation. | |
int | size () const |
Returns the size of the sockaddr representation. | |
void | size (int _size) |
Sets the size of the sockaddr representation. | |
Protected Attributes | |
int | _M_size |
Holds the data size. | |
Friends | |
class | sock |