fgms 0.11.8
The
FlightGear MultiPlayer Server
project
fgt_common.h File Reference
#include "fgt_config.h"
#include "fgt_error.h"
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <syslog.h>
#include <string.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  if_nameindex
 
struct  unp_in_pktinfo
 

Macros

#define BUFFSIZE   8192 /* buffer size for reads and writes */
 
#define bzero(ptr, n)    memset (ptr, 0, n)
 
#define DIR_MODE   (FILE_MODE | S_IXUSR | S_IXGRP | S_IXOTH)
 
#define FILE_MODE   (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
 
#define gethostbyname2(host, family)    gethostbyname((host))
 
#define HAVE_STRUCT_SOCKADDR_STORAGE
 
#define LISTENQ   1024 /* 2nd argument to listen () */
 
#define max(a, b)    ((a) > (b) ? (a) : (b))
 
#define MAXLINE   4096 /* max text line length */
 
#define min(a, b)    ((a) < (b) ? (a) : (b))
 
#define MSGMAXLINE   512 /*Maximun character in msg: 511. char in [512] = '\0'*/
 
#define SA   struct sockaddr
 
#define SCLOSE   close
 
#define SERROR(a)   (a < 0)
 
#define SERV_PORT   9877 /* TCP and UDP */
 
#define SERV_PORT_STR   "9877" /* TCP and UDP */
 
#define SREAD   read
 
#define SWRITE   write
 
#define UNIXDG_PATH   "/tmp/unix.dg" /* Unix domain datagram */
 
#define UNIXSTR_PATH   "/tmp/unix.str" /* Unix domain stream */
 

Typedefs

typedef void Sigfunc(int)
 

Macro Definition Documentation

#define BUFFSIZE   8192 /* buffer size for reads and writes */

Definition at line 180 of file fgt_common.h.

#define bzero (   ptr,
 
)    memset (ptr, 0, n)

Definition at line 121 of file fgt_common.h.

#define DIR_MODE   (FILE_MODE | S_IXUSR | S_IXGRP | S_IXOTH)

Definition at line 219 of file fgt_common.h.

#define FILE_MODE   (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)

Definition at line 217 of file fgt_common.h.

#define gethostbyname2 (   host,
  family 
)    gethostbyname((host))

Definition at line 126 of file fgt_common.h.

#define HAVE_STRUCT_SOCKADDR_STORAGE

Definition at line 190 of file fgt_common.h.

#define LISTENQ   1024 /* 2nd argument to listen () */

Definition at line 175 of file fgt_common.h.

#define max (   a,
 
)    ((a) > (b) ? (a) : (b))

Definition at line 244 of file fgt_common.h.

#define MAXLINE   4096 /* max text line length */

Definition at line 178 of file fgt_common.h.

#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 243 of file fgt_common.h.

#define MSGMAXLINE   512 /*Maximun character in msg: 511. char in [512] = '\0'*/

Definition at line 179 of file fgt_common.h.

#define SA   struct sockaddr

Definition at line 189 of file fgt_common.h.

#define SCLOSE   close

Definition at line 247 of file fgt_common.h.

Referenced by Close().

#define SERROR (   a)    (a < 0)

Definition at line 248 of file fgt_common.h.

Referenced by doit().

#define SERV_PORT   9877 /* TCP and UDP */

Definition at line 183 of file fgt_common.h.

#define SERV_PORT_STR   "9877" /* TCP and UDP */

Definition at line 184 of file fgt_common.h.

#define SREAD   read

Definition at line 246 of file fgt_common.h.

Referenced by doit().

#define SWRITE   write

Definition at line 245 of file fgt_common.h.

Referenced by doit(), and main().

#define UNIXDG_PATH   "/tmp/unix.dg" /* Unix domain datagram */

Definition at line 186 of file fgt_common.h.

#define UNIXSTR_PATH   "/tmp/unix.str" /* Unix domain stream */

Definition at line 185 of file fgt_common.h.

Typedef Documentation

typedef void Sigfunc(int)

Definition at line 222 of file fgt_common.h.