Skip to content
Youx edited this page Sep 13, 2010 · 1 revision

Print/Log function (Easy)

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

Arguments to the program (Easy)

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
  • … ?

Support Big Endian architectures

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?)

Packet scheduler

  • 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