simple-socket library 1.1.5
Public Member Functions

NET::SocketException Class Reference

Signals a problem with the execution of a socket call. More...

#include <SimpleSocket.h>

List of all members.

Public Member Functions

int errorCode () const throw ()
 Returns the glibc errno code of the current error.
 SocketException (const std::string &message, bool inclSysMsg=true) throw ()
const char * what () const throw ()
 Returns a C-string describing the cause of the current error.
 ~SocketException () throw ()
 Provided just to guarantee that no exceptions are thrown.

Detailed Description

Signals a problem with the execution of a socket call.

Examples:

TCP_Client.cpp, TCP_Server.cpp, and UDP_Multicast.cpp.

Definition at line 11 of file SimpleSocket.h.


Constructor & Destructor Documentation

SocketException::SocketException ( const std::string &  message,
bool  inclSysMsg = true 
) throw ()

Construct a SocketException with a explanatory message.

Parameters:
messageexplanatory message
inclSysMsgtrue if system message from strerror(errno) should be postfixed to the user provided message

Definition at line 10 of file SimpleSocket.cpp.

NET::SocketException::~SocketException ( ) throw () [inline]

Provided just to guarantee that no exceptions are thrown.

Definition at line 23 of file SimpleSocket.h.


Member Function Documentation

const char* NET::SocketException::what ( ) const throw () [inline]

Returns a C-string describing the cause of the current error.

Examples:
TCP_Client.cpp, TCP_Server.cpp, and UDP_Multicast.cpp.

Definition at line 26 of file SimpleSocket.h.

int NET::SocketException::errorCode ( ) const throw () [inline]

Returns the glibc errno code of the current error.

Definition at line 29 of file SimpleSocket.h.


The documentation for this class was generated from the following files: