Niotso  git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
Server.cpp File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <syslog.h>
#include <netinet/in.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include "Server.hpp"

Macros

#define SHUTDOWN(X)
 
#define SHUTDOWN_M(X, Y)
 

Functions

static void term (int)
 
int main (int, char **)
 

Macro Definition Documentation

#define SHUTDOWN (   X)
Value:
do { syslog(LOG_INFO, "<info> Could not recover from errors. Shutting down."); \
exitval = EXIT_FAILURE; goto X; } while(0)
#define SHUTDOWN_M (   X,
 
)
Value:
do { syslog(LOG_ERR, "<error> %s (%s)", X, strerror(errno)); \
SHUTDOWN(Y); } while(0)

Function Documentation

int main ( int  ,
char **   
)
static void term ( int  )
static