Chat server written in C/C++, testing my network programming