Public Member Functions | Public Attributes
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 245 of file Exceptions.h.


Constructor & Destructor Documentation

Definition at line 247 of file Exceptions.h.

    : Exception( "Socket Error", errorToWhat() ) {}
FIX::SocketException::SocketException ( const std::string &  what) [inline]

Definition at line 250 of file Exceptions.h.

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

Member Function Documentation

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

Definition at line 253 of file Exceptions.h.

References error.

  {
#ifdef _MSC_VER
    error = WSAGetLastError();
    char buffer[2048];
    FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM, NULL, error,
                   MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
                   buffer, 2048, NULL );
    return buffer;
#else
    error = errno;
    return strerror( error );
#endif
  }

Member Data Documentation

Definition at line 268 of file Exceptions.h.

Referenced by errorToWhat().


The documentation for this struct was generated from the following file:

Generated on Mon Jun 23 2014 23:49:39 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001