[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3. sockAddr Class

Class sockAddr is an abstract base class for all socket address classes. That is, domain specific socket address classes are all derived from sockAddr class.

Note: sockAddr is not spelled sockaddr in order to prevent name clash with struct sockaddr declared in `<sys/socket.h>'.

Non-abstract derived classes must have definitions for the following functions.

sockAddr::operator void* ()
should simply return this.

sockAddr::size()
should return sizeof(*this). The return type is int.

sockAddr::family()
should return address family (domain name) of the socket address. The return type is int


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Herbert Straub on June, 15 2005 using texi2html