NCL Library
|
#include <WinSock.hpp>
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 |
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.
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] |
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] |
CWinSock::SocketMapPtr CWinSock::g_pSockMap [static, private] |