Correct wrong socket usage in server.cpp