golib
0.5
|
Basic network functions. More...
#include <gonetwork.h>
Static Public Member Functions | |
static bool | sendData (const void *data, size_t size, int sock) |
static void * | receiveData (goSize_t *size, int sock) |
static void * | receiveDataMax (unsigned int recvsize, int sock) |
Receives exactly recvsize bytes and returns. | |
static bool | sendFile (char *path, int sock) |
static bool | waitForData (int descriptor) |
static bool | fail (int internal=3) |
Basic network functions.
|
static |
Returns newly allocated data block containing received data. The data block is allocated using C malloc.