NCL Library
Static Public Member Functions | Private Types | Static Private Member Functions | Static Private Attributes
CWinSock Class Reference

#include <WinSock.hpp>

List of all members.

Static Public Member Functions

static int Startup (uint nMajorVer, uint nMinorVer)
static int Cleanup ()
static int LastError ()
static CString ErrorToSymbol (int nError)
static void BeginAsyncSelect (CSocket *pSocket, long lEventMask)
static void EndAsyncSelect (CSocket *pSocket)
static void ProcessSocketMsgs ()

Private Types

typedef std::map< SOCKET,
CSocket * > 
SocketMap
 The map of socket handle to object.
typedef Core::SharedPtr
< SocketMap
SocketMapPtr
 The socket handle map smart-pointer type.

Static Private Member Functions

static LRESULT CALLBACK WindowProc (HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)

Static Private Attributes

static bool g_bStarted = false
static WSADATA g_oWSAData = { 0 }
static uint g_nSockMsg = 0
static HWND g_hSockWnd = NULL
static SocketMapPtr g_pSockMap

Member Typedef Documentation

typedef std::map<SOCKET, CSocket*> CWinSock::SocketMap [private]

The map of socket handle to object.

typedef Core::SharedPtr<SocketMap> CWinSock::SocketMapPtr [private]

The socket handle map smart-pointer type.


Member Function Documentation

int CWinSock::Startup ( uint  nMajorVer,
uint  nMinorVer 
) [static]
int CWinSock::Cleanup ( ) [static]
int CWinSock::LastError ( ) [inline, static]
CString CWinSock::ErrorToSymbol ( int  nError) [static]
void CWinSock::BeginAsyncSelect ( CSocket pSocket,
long  lEventMask 
) [static]
void CWinSock::EndAsyncSelect ( CSocket pSocket) [static]
void CWinSock::ProcessSocketMsgs ( ) [static]
LRESULT CALLBACK CWinSock::WindowProc ( HWND  hWnd,
UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam 
) [static, private]

Member Data Documentation

bool CWinSock::g_bStarted = false [static, private]
WSADATA CWinSock::g_oWSAData = { 0 } [static, private]
uint CWinSock::g_nSockMsg = 0 [static, private]
HWND CWinSock::g_hSockWnd = NULL [static, private]

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