MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Macros | Functions
socket.cpp File Reference

A handy Socket wrapper library. More...

#include "socket.h"
#include "timing.h"
#include "defines.h"
#include <sys/stat.h>
#include <poll.h>
#include <netdb.h>
#include <sstream>
#include <cstdlib>

Macros

#define BUFFER_BLOCKSIZE   4096
 
#define SOCKETSIZE   51200ul
 

Functions

bool isFDBlocking (int FD)
 Internally used call to make an file descriptor blocking or not. More...
 
void setFDBlocking (int FD, bool blocking)
 Internally used call to make an file descriptor blocking or not. More...
 
std::string uint2string (unsigned int i)
 

Detailed Description

A handy Socket wrapper library.

Written by Jaron Vietor in 2010 for DDVTech

Macro Definition Documentation

#define BUFFER_BLOCKSIZE   4096
#define SOCKETSIZE   51200ul

Function Documentation

bool isFDBlocking ( int  FD)

Internally used call to make an file descriptor blocking or not.

void setFDBlocking ( int  FD,
bool  blocking 
)

Internally used call to make an file descriptor blocking or not.

std::string uint2string ( unsigned int  i)