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

14. Error Handling

Each class in the Socket++ library uses error(const char*) member function to report any errors that may occur during a system call. It first calls perror() to report the error message for the errno set by the system call. It then calls sock_error (const char* nm, const char* errmsg) where nm is the name of the class.

The sock_error() function simply prints the nm and the errmsg on the stderr.


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

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