public TChannel(TSocket socket, string host, int port, TService service): base(service) { this.socket = socket; this.service = service; this.parser = new PacketParser(this.recvBuffer); this.remoteAddress = host + ":" + port; }
public TChannel(TSocket socket, TService service): base(service) { this.isConnected = true; this.socket = socket; this.service = service; this.parser = new PacketParser(this.recvBuffer); this.remoteAddress = this.socket.RemoteAddress; this.StartRecv(); }