PREV UP NEXT C++ socket classes for OS/2

Chapter 4: 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