public SwimClientWorker(ISwimServer server, TcpClient connection) { this.server = server; this.connection = connection; try { stream = connection.GetStream(); formatter = new BinaryFormatter(); connected = true; } catch (Exception e) { Console.WriteLine(e.StackTrace); } }
public SwimClientController(ISwimServer server) { this.server = server; }
public SerialSwimServer(string host, int port, ISwimServer server) : base(host, port) { this.server = server; Console.WriteLine("SerialChatServer..."); }