NLNET::ESocket Struct Reference

#include <sock.h>

Inheritance diagram for NLNET::ESocket:

NLMISC::Exception NLNET::EAccessDenied NLNET::EServiceNotFound NLNET::ESocketConnectionClosed NLNET::ESocketConnectionFailed

Detailed Description

Network exceptions
Author:
Olivier Cado

Nevrax France

Date:
2000

Definition at line 44 of file sock.h.

Public Member Functions

 ESocket (const char *reason="", bool systemerror=true, CInetAddress *addr=NULL)
virtual const char * what () const throw ()

Protected Attributes

std::string _Reason


Constructor & Destructor Documentation

NLNET::ESocket::ESocket const char *  reason = "",
bool  systemerror = true,
CInetAddress addr = NULL
 

Constructor You can provide an internet address. If so, reason *must* contain "%s" where the address should be written. Moreover, the length of reason plus the length of the address when displayed by asString() should no exceed 256.


Member Function Documentation

const char * NLMISC::Exception::what  )  const throw () [virtual, inherited]
 

Reimplemented in NL3D::EBadBind.

Definition at line 672 of file common.cpp.

00673 {
00674         return _Reason.c_str();
00675 }


Field Documentation

std::string NLMISC::Exception::_Reason [protected, inherited]
 

Definition at line 244 of file common.h.

Referenced by NLMISC::Exception::Exception().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 14:07:28 2004 for NeL by doxygen 1.3.6