Create server.cpp

server code