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; }
public void StartTcpServer(int port) { tcpListener = new SHServerTCPServer(); tcpListener.StartListener(port, this); }