-
Notifications
You must be signed in to change notification settings - Fork 8
Tickets
Youx edited this page Sep 13, 2010
·
1 revision
Add a print/log function to replace the currently used print. The function should be able to take different levels of message :
- Error : a serious problem
- Warning : something unexpected occured but hopefully won’t prevent the server from working
- Info : not so important
- Debug : debug info, like printing the content of the server, etc…
Log to a file or to stderr or to stdout
The program should be able to take arguments (see man (3) getopt)
- define the log level
- output to a given file
- define a config file to read from
- print version and info
- … ?
Use the macros present in compat.h to
- transform defined constants to little endian
- transform variables to little endian (16 and 32 bit integers) before they are put into packets
- transform variables from little endian when getting them from a packet
Find a platform to debug on (PowerPC, Sparc in qemu?)
- Create a packet scheduler (in a thread) that handles
- Create a queue per player
- Replace the send_to function to put in the queue
- Handle resending