golib  0.5
goNet::goNetwork Class Reference

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)
 

Detailed Description

Basic network functions.

Returns

Member Function Documentation

◆ receiveData()

void * goNet::goNetwork::receiveData ( goSize_t size,
int  sock 
)
static

Returns newly allocated data block containing received data. The data block is allocated using C malloc.


The documentation for this class was generated from the following files: