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);
     }
 }
예제 #2
0
 public SwimClientController(ISwimServer server)
 {
     this.server = server;
 }
예제 #3
0
 public SerialSwimServer(string host, int port, ISwimServer server) : base(host, port)
 {
     this.server = server;
     Console.WriteLine("SerialChatServer...");
 }