public void Connect(string hostname, int port) { client = new TcpClient(hostname, port); stream = client.GetStream(); packet = new PacketHelper(stream); }
public TcpClientSession(TcpClient client) { this.client = client; this.stream = client.GetStream(); this.packet = new PacketHelper(stream); }