working server in CPP