Example #1
0
 public SHServerTCPClient(TcpClient client, SHServerTCPServer tcpServer, SHServer server)
 {
     this.client    = client;
     stream         = client.GetStream();
     reader         = new BinaryReader(stream);
     readerS        = new StreamReader(stream);
     writer         = new BinaryReader(stream);
     writerS        = new StreamWriter(stream);
     this.server    = server;
     this.tcpServer = tcpServer;
 }
Example #2
0
 public void StartTcpServer(int port)
 {
     tcpListener = new SHServerTCPServer();
     tcpListener.StartListener(port, this);
 }