socklibpp::addr Class Reference

Abstract base class for network addresses. More...

#include <sockaddr.h>

Inheritance diagram for socklibpp::addr:

socklibpp::addr_in List of all members.

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

Detailed Description

Abstract base class for network addresses.


Member Enumeration Documentation

enum socklibpp::addr::family

Address families.

Enumerator:
af_unspec  Unspecified.
af_unix  Unix (pipes).
af_inet  IPv4.
af_inet6  IPv6.
af_max  not used


The documentation for this class was generated from the following file:
Generated on Thu Jan 18 19:26:35 2007 for socklib++ by  doxygen 1.5.1