internal TcpChannel(IChannel parent, Tcp tcp) : base(parent) { this.config = new TcpChannelConfig(this); this.SetState(StateFlags.Open); this.tcp = tcp; if (this.tcp != null) { if (this.config.TcpNoDelay) { tcp.NoDelay(true); } this.OnConnected(); } }
internal TcpChannel(IChannel parent, Tcp tcp) : base(parent) { this.config = new TcpChannelConfig(this); this.SetState(StateFlags.Open); this.tcp = tcp; }