Create svr.cpp

please used with client.cpp together