libcod
server.hpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "gsc.hpp"
#include <dlfcn.h>
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <inttypes.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include "cracking.hpp"
Include dependency graph for server.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TCP_connection
 

Macros

#define BUFFER_OUT   4096
 
#define MAX_ROWS   16
 
#define MAX_COLS   16
 
#define MAX_CHARS   64
 

Functions

void startServerAsThread (int port, int debug)
 
int cdecl_injected_shell (int a, int b, int c)
 
int cdecl_return_0 ()
 
int cdecl_return_1 ()
 
int cdecl_print (int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9)
 
int TCP_server_start (TCP_connection *conn, int port)
 
int TCP_wait_for_client (TCP_connection *conn)
 
int TCP_close_connection (TCP_connection *conn)
 
int TCP_read_all_bugged (TCP_connection *conn, void *buffer, int bufferLen, int *outMsgLen)
 
int TCP_read_all (TCP_connection *conn, void *buffer, int bufferLen, int *outMsgLen)
 
int TCP_write (TCP_connection *conn, const char *str,...)
 
int parseRequest (char *toParse, char table[MAX_ROWS][MAX_COLS][MAX_CHARS])
 
int handleRequest (char lol[MAX_ROWS][MAX_COLS][MAX_CHARS])
 
void input (char *buffer, int len)
 
int readMemoryRange (void *from, void *buffer, int bytes)
 

Macro Definition Documentation

#define BUFFER_OUT   4096
#define MAX_CHARS   64
#define MAX_COLS   16
#define MAX_ROWS   16

Function Documentation

int cdecl_injected_shell ( int  a,
int  b,
int  c 
)
int cdecl_print ( int  a0,
int  a1,
int  a2,
int  a3,
int  a4,
int  a5,
int  a6,
int  a7,
int  a8,
int  a9 
)
int cdecl_return_0 ( )
int cdecl_return_1 ( )
int handleRequest ( char  lol[MAX_ROWS][MAX_COLS][MAX_CHARS])
void input ( char *  buffer,
int  len 
)
int parseRequest ( char *  toParse,
char  table[MAX_ROWS][MAX_COLS][MAX_CHARS] 
)
int readMemoryRange ( void *  from,
void *  buffer,
int  bytes 
)
void startServerAsThread ( int  port,
int  debug 
)

Here is the caller graph for this function:

int TCP_close_connection ( TCP_connection conn)
int TCP_read_all ( TCP_connection conn,
void *  buffer,
int  bufferLen,
int *  outMsgLen 
)
int TCP_read_all_bugged ( TCP_connection conn,
void *  buffer,
int  bufferLen,
int *  outMsgLen 
)
int TCP_server_start ( TCP_connection conn,
int  port 
)
int TCP_wait_for_client ( TCP_connection conn)
int TCP_write ( TCP_connection conn,
const char *  str,
  ... 
)