JNetLibray
|
매크로 | |
#define | IN /* marks input param */ |
#define | OUT /* marks output param */ |
#define | INOUT /* marks input+output param */ |
함수 | |
int | InitWindowSocketLib (LPWSADATA) |
SOCKET | CreateWindowSocket_IPv4 (bool isTCP, OUT int *errCode=NULL) |
SOCKADDR_IN | CreateDestinationADDR (const char *destIP, uint16 destPort) |
SOCKADDR_IN | CreateDestinationADDR (IN_ADDR destInAddr, uint16 destPort) |
SOCKADDR_IN | CreateDestinationADDR_LoopBack (uint16 destPort) |
SOCKADDR_IN | CreateDestinationADDR_byDomain (WCHAR *destDomain, uint16 destPort) |
bool | ConnectToDestination (const SOCKET &sock, const SOCKADDR_IN &destAddr, OUT int *errCode=NULL) |
SOCKADDR_IN | CreateServerADDR (const char *serverIp, uint16 port) |
SOCKADDR_IN | CreateServerADDR_ANY (uint16 port) |
SOCKADDR_IN | CreateServerADDR_LoopBack (uint16 port) |
bool | BindSocket (SOCKET &sock, SOCKADDR_IN &serverAddr, OUT int *errCode=NULL) |
bool | ListenSocket (SOCKET &sock, int backlog, OUT int *errCode=NULL) |
SOCKET | AcceptSocket (SOCKET &sock, SOCKADDR_IN &clientAddr, OUT int *errCode=NULL) |
void | IN_ADDR_TO_STRING (const IN_ADDR &inAddr, char ipStr[INET_ADDRSTRLEN]) |
bool | DomainAddrToIP (WCHAR *szDomain, IN_ADDR *pAddr) |
#define IN /* marks input param */ |
#define OUT /* marks output param */ |
#define INOUT /* marks input+output param */ |
int InitWindowSocketLib | ( | LPWSADATA | pWsaData | ) |
SOCKET CreateWindowSocket_IPv4 | ( | bool | isTCP, |
OUT int * | errCode = NULL ) |
SOCKADDR_IN CreateDestinationADDR | ( | const char * | destIP, |
uint16 | destPort ) |
SOCKADDR_IN CreateDestinationADDR | ( | IN_ADDR | destInAddr, |
uint16 | destPort ) |
SOCKADDR_IN CreateDestinationADDR_LoopBack | ( | uint16 | destPort | ) |
SOCKADDR_IN CreateDestinationADDR_byDomain | ( | WCHAR * | destDomain, |
uint16 | destPort ) |
bool ConnectToDestination | ( | const SOCKET & | sock, |
const SOCKADDR_IN & | destAddr, | ||
OUT int * | errCode = NULL ) |
SOCKADDR_IN CreateServerADDR | ( | const char * | serverIp, |
uint16 | port ) |
SOCKADDR_IN CreateServerADDR_ANY | ( | uint16 | port | ) |
SOCKADDR_IN CreateServerADDR_LoopBack | ( | uint16 | port | ) |
bool BindSocket | ( | SOCKET & | sock, |
SOCKADDR_IN & | serverAddr, | ||
OUT int * | errCode = NULL ) |
bool ListenSocket | ( | SOCKET & | sock, |
int | backlog, | ||
OUT int * | errCode = NULL ) |
SOCKET AcceptSocket | ( | SOCKET & | sock, |
SOCKADDR_IN & | clientAddr, | ||
OUT int * | errCode = NULL ) |
void IN_ADDR_TO_STRING | ( | const IN_ADDR & | inAddr, |
char | ipStr[INET_ADDRSTRLEN] ) |
bool DomainAddrToIP | ( | WCHAR * | szDomain, |
IN_ADDR * | pAddr ) |