Correct faulty socket usage in server.cpp.