/Users/adrian/Desktop/racemud/main.c File Reference

#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/signal.h>
#include <fcntl.h>
#include <dirent.h>
#include <sys/time.h>
#include <errno.h>
#include <string.h>
#include "racemud.h"
#include "telnet.h"

Functions

void disco_client (int client_num)
int nocasestrcmp (char **a, char **b)
void error (char *msg)
void debug (char *msg)
int readline (int fd, char *bufptr)
void setnonblocking (int sock)
void build_select_list ()
void handle_cmd (int client_id, char buffer[256], int bufferlen)
void broken_pipe (int signal)
void handle_new_user (int client_id, char *buffer)
void handle_login (int client_id, char buffer[256], int bufferlen)
void load_world ()
void save_world (char *name)
void handle_arguments (int argc, char *argv[])
static void handle_sigint (int signum)
int main (int argc, char *argv[])

Variables

int contsockfd
fd_set socks

Function Documentation

void broken_pipe ( int  signal  ) 

void build_select_list (  ) 

void debug ( char *  msg  ) 

void disco_client ( int  client_num  ) 

void error ( char *  msg  ) 

void handle_arguments ( int  argc,
char *  argv[] 
)

void handle_cmd ( int  client_id,
char  buffer[256],
int  bufferlen 
)

void handle_login ( int  client_id,
char  buffer[256],
int  bufferlen 
)

void handle_new_user ( int  client_id,
char *  buffer 
)

static void handle_sigint ( int  signum  )  [static]

void load_world (  ) 

int main ( int  argc,
char *  argv[] 
)

int nocasestrcmp ( char **  a,
char **  b 
)

int readline ( int  fd,
char *  bufptr 
)

void save_world ( char *  name  ) 

void setnonblocking ( int  sock  ) 


Variable Documentation

int contsockfd

fd_set socks


Generated on Fri Jun 30 17:56:37 2006 for Racemud by  doxygen 1.4.7