6#pragma comment(lib, "ws2_32")
56bool BindSocket(SOCKET& sock, SOCKADDR_IN& serverAddr,
OUT int* errCode = NULL);
60SOCKET
AcceptSocket(SOCKET& sock, SOCKADDR_IN& clientAddr,
OUT int* errCode = NULL);
unsigned __int16 uint16
Definition CommTypes.h:9
void IN_ADDR_TO_STRING(const IN_ADDR &inAddr, char ipStr[INET_ADDRSTRLEN])
int InitWindowSocketLib(LPWSADATA)
Definition WinSocketAPI.cpp:3
SOCKET CreateWindowSocket_IPv4(bool isTCP, OUT int *errCode=NULL)
bool BindSocket(SOCKET &sock, SOCKADDR_IN &serverAddr, OUT int *errCode=NULL)
SOCKET AcceptSocket(SOCKET &sock, SOCKADDR_IN &clientAddr, OUT int *errCode=NULL)
bool ConnectToDestination(const SOCKET &sock, const SOCKADDR_IN &destAddr, OUT int *errCode=NULL)
bool ListenSocket(SOCKET &sock, int backlog, OUT int *errCode=NULL)
SOCKADDR_IN CreateDestinationADDR(const char *destIP, uint16 destPort)
Definition WinSocketAPI.cpp:45
SOCKADDR_IN CreateServerADDR_LoopBack(uint16 port)
Definition WinSocketAPI.cpp:182
SOCKADDR_IN CreateDestinationADDR_LoopBack(uint16 destPort)
Definition WinSocketAPI.cpp:74
bool DomainAddrToIP(WCHAR *szDomain, IN_ADDR *pAddr)
Definition WinSocketAPI.cpp:233
SOCKADDR_IN CreateServerADDR(const char *serverIp, uint16 port)
Definition WinSocketAPI.cpp:136
#define OUT
Definition WinSocketAPI.h:14
SOCKADDR_IN CreateServerADDR_ANY(uint16 port)
Definition WinSocketAPI.cpp:158
SOCKADDR_IN CreateDestinationADDR_byDomain(WCHAR *destDomain, uint16 destPort)
Definition WinSocketAPI.cpp:78