#include <gmlsocket.h>
Public Member Functions | |
bool | Create (int nSocketPort=0, const char *lpszSocketAddress=NULL) |
bool | Bind (int nSocketPort, const char *lpszSocketAddress=NULL) |
void | Close () |
bool | Connect (const char *lpszHostAddress, int nHostPort) |
bool | Accept (gml::Socket &rConnectedSocket) |
bool | Listen (int nConnectionBacklog=5) |
int | Receive (void *lpBuf, int nBufLen, int nFlags=0) |
int | Send (const void *lpBuf, int nBufLen, int nFlags=0) |
bool | SendFile (const std::string &out_filename) |
bool | ReceiveFile (const std::string in_filename) |
Static Public Member Functions | |
bool | InitSockets () |
Initilize Win32 sockets (MUST be called before use of sockets). |