Index  Source Files  Annotated Class List  Alphabetical Class List  Class Hierarchy  Graphical Class Hierarchy   
 

FIX::SocketException Struct Reference

Socket Error. More...

#include <Exceptions.h>

Inheritance diagram for FIX::SocketException:

Inheritance graph
[legend]
Collaboration diagram for FIX::SocketException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SocketException ()
 SocketException (const std::string &what)
std::string errorToWhat ()

Public Attributes

int error

Detailed Description

Socket Error.

Definition at line 234 of file Exceptions.h.


Constructor & Destructor Documentation

FIX::SocketException::SocketException  )  [inline]
 

Definition at line 236 of file Exceptions.h.

References errorToWhat().

00237     : Exception( "Socket Error", errorToWhat() ) {}

FIX::SocketException::SocketException const std::string &  what  )  [inline]
 

Definition at line 239 of file Exceptions.h.

00240     : Exception( "Socket Error", what ) {}


Member Function Documentation

std::string FIX::SocketException::errorToWhat  )  [inline]
 

Definition at line 242 of file Exceptions.h.

References error.

Referenced by SocketException().

00243   {
00244 #ifdef _MSC_VER
00245     error = WSAGetLastError();
00246     char buffer[2048];
00247     FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM, NULL, error,
00248                    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
00249                    buffer, 2048, NULL );
00250     return buffer;
00251 #else
00252     error = errno;
00253     return strerror( error );
00254 #endif
00255   }


Member Data Documentation

int FIX::SocketException::error
 

Definition at line 257 of file Exceptions.h.

Referenced by errorToWhat().


The documentation for this struct was generated from the following file:
Generated on Mon Jul 24 19:36:40 2006 for QuickFIX by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2001