_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <netsockets.h>
Public Member Functions | |
netsockets.cpp - TCP and UDP sockets. | |
CUDPSocket () | |
~CUDPSocket () | |
bool | Open (const CHost &host) |
void | Close () |
void | Send (const CHost &host, const void *buf, unsigned int len) |
int | Recv (void *buf, int len, CHost *hostFrom) |
void | SetNonBlocking () |
int | HasDataToRead (int timeout) |
bool | IsValid () const |
CUDPSocket::CUDPSocket | ( | ) |
CUDPSocket::~CUDPSocket | ( | ) |
void CUDPSocket::Close | ( | ) |
int CUDPSocket::HasDataToRead | ( | int | timeout | ) |
bool CUDPSocket::IsValid | ( | ) | const |
bool CUDPSocket::Open | ( | const CHost & | host | ) |
int CUDPSocket::Recv | ( | void * | buf, |
int | len, | ||
CHost * | hostFrom | ||
) |
void CUDPSocket::Send | ( | const CHost & | host, |
const void * | buf, | ||
unsigned int | len | ||
) |
void CUDPSocket::SetNonBlocking | ( | ) |