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.