BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioSocketAddress Class Reference

#include <BioSocketAddress.h>

Inheritance diagram for BioSocketAddress:

List of all members.

Public Types

enum  family { af_unspec = AF_UNSPEC, af_unix = AF_UNIX, af_inet = AF_INET, af_max = AF_MAX }
 Address families. More...

Protected Member Functions

 BioSocketAddress (struct sockaddr *_d, int _s) throw ()
 Constructor that sets the internal pointer and size.
virtual ~BioSocketAddress ()
virtual void reset ()=0 throw ()
 Resets the size of the internal sockaddr reprentation.
struct sockaddr * data ()
 Returns a pointer to the sockaddr representation.
struct 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 BioSocket

Member Enumeration Documentation

Address families.

Enumerator:
af_unspec 

Unspecified.

af_unix 

Unix (pipes)

af_inet 

IPv4.

af_max 

not used


Constructor & Destructor Documentation

BioSocketAddress::BioSocketAddress ( struct sockaddr *  _d,
int  _s 
) throw () [inline, protected]

Constructor that sets the internal pointer and size.

virtual BioSocketAddress::~BioSocketAddress ( ) [inline, protected, virtual]

Member Function Documentation

struct sockaddr* BioSocketAddress::data ( ) [inline, read, protected]

Returns a pointer to the sockaddr representation.

struct sockaddr* BioSocketAddress::data ( ) const [inline, read, protected]

Returns a read-only pointer to the sockaddr representation.

virtual void BioSocketAddress::reset ( ) throw () [protected, pure virtual]

Resets the size of the internal sockaddr reprentation.

Implemented in BioSocketAddressIn.

int BioSocketAddress::size ( ) const [inline, protected]

Returns the size of the sockaddr representation.

void BioSocketAddress::size ( int  _size) [inline, protected]

Sets the size of the sockaddr representation.


Friends And Related Function Documentation

friend class BioSocket [friend]

Member Data Documentation

int BioSocketAddress::_M_size [protected]

Holds the data size.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines