Update server.cpp

Added basic structure for connection