BioInt
1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
|
#include <BioSocketAddress.h>
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 |
BioSocketAddress::BioSocketAddress | ( | struct sockaddr * | _d, |
int | _s | ||
) | throw () [inline, protected] |
Constructor that sets the internal pointer and size.
virtual BioSocketAddress::~BioSocketAddress | ( | ) | [inline, protected, virtual] |
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.
friend class BioSocket [friend] |
int BioSocketAddress::_M_size [protected] |
Holds the data size.