fgms 0.11.8
The
FlightGear MultiPlayer Server
project
netSocket.h File Reference

netSocket is a thin C++ wrapper over bsd sockets to facilitate porting to other platforms. Part of PLIB - A Suite of Portable Game Libraries More...

#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdarg.h>
#include <string>
#include <server/fg_util.hxx>

Go to the source code of this file.

Classes

class  netAddress
 Socket address, internet style. More...
 
class  netSocket
 Socket type. More...
 

Macros

#define RECOVERABLE_ERROR   (errno == EINTR)
 
#define SOCKET_ERROR   -1
 

Functions

const char * netFormat (const char *fmt,...)
 
int netInit ()
 

Detailed Description

netSocket is a thin C++ wrapper over bsd sockets to facilitate porting to other platforms. Part of PLIB - A Suite of Portable Game Libraries

Author
Dave McClurg dpm@e.nosp@m.fn.o.nosp@m.rg

Definition in file netSocket.h.

Macro Definition Documentation

#define RECOVERABLE_ERROR   (errno == EINTR)

Definition at line 79 of file netSocket.h.

Referenced by LIBCLI::CLI::get_input(), netSocket::read_char(), and netSocket::write_str().

#define SOCKET_ERROR   -1

Function Documentation

const char* netFormat ( const char *  fmt,
  ... 
)

Definition at line 606 of file netSocket.cxx.

int netInit ( )

Definition at line 585 of file netSocket.cxx.

Referenced by FG_SERVER::Init().