Simple Server coded in C++