WinStd
Additional templates and function helpers for Microsoft Windows using Standard C++ classes
Classes | Typedefs | Functions
WinSock2.h File Reference

Integrates WinStd classes with Microsoft WinSock2 API. More...

#include "Common.h"
#include <WinSock2.h>
#include <ws2def.h>
#include <WS2tcpip.h>

Go to the source code of this file.

Classes

class  winstd::ws2_runtime_error
 WinSock2 runtime error. More...
 
class  winstd::addrinfo
 SID wrapper class. More...
 
class  winstd::waddrinfo
 SID wrapper class. More...
 

Typedefs

typedef addrinfo winstd::taddrinfo
 Multi-byte / Wide-character SID wrapper class (according to _UNICODE)
 

Functions

static INT GetAddrInfoA (PCSTR pNodeName, PCSTR pServiceName, const ADDRINFOA *pHints, winstd::addrinfo &result)
 Provides protocol-independent translation from a host name to an address. More...
 
static INT GetAddrInfoW (PCWSTR pNodeName, PCWSTR pServiceName, const ADDRINFOW *pHints, winstd::waddrinfo &result)
 Provides protocol-independent translation from a host name to an address. More...
 

Detailed Description

Integrates WinStd classes with Microsoft WinSock2 API.