sP2P c++ STL *nix API  1.2
NAT traversal and peer-to-peer networking API providing all utilities needed to build peer-to-peer application straigth out of box
 All Classes Functions Variables Typedefs Enumerations Enumerator
sp2plib::Uninetwork Class Reference

Classes

struct  NetworkInterface
 

Static Public Member Functions

static void InitNetwork ()
 Initialises WINSOCK api (only for windows platform)
 
static sp2plib::UInt16 GetRandomPort ()
 
static bool setSocketBlockingMode (Socket sock, bool blocking)
 
static bool setSocketReuse (Socket sock)
 
static void SocketClose (Socket sock)
 
static Socket createTCPSocket ()
 
static Socket createUDPSocket ()
 
static bool bindSocket (Socket sock, sockaddr_in endpoint)
 
static void preserveSocketForOtherProcess (Socket s)
 
static bool setTCPSocketLinger (Socket s, bool Linger, int Seconds)
 
static bool setTCPSocketNoDelay (Socket s, bool value)
 
static int setSockTTL (Socket sock, int TTL)
 

Static Public Attributes

static int DUBUG_VALUE
 
static bool TrackSockets
 

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