示例#1
0
 public LibraryClientWorker(ILibraryServer 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 LibraryClientController(ILibraryServer server)
 {
     this.server = server;
     currentUser = null;
 }
 public SerialChatServer(string host, int port, ILibraryServer server) : base(host, port)
 {
     this.server = server;
     Console.WriteLine("SerialChatServer...");
 }