connection between server and client written in csharp