internal TcpSocketChannel(IChannel parent, Socket socket, bool connected) : base(parent, socket) { this.config = new TcpSocketChannelConfig(this, socket); if (connected) { this.OnConnected(); } }
internal CustTcpSocketChannel(IChannel parent, Socket socket, bool connected) : base(parent, socket) { bsp_dic = new Dictionary <string, Bootstrap>(); allclientchannel = new Dictionary <string, IChannel>(); allclientCounter = new Dictionary <string, int>(); this.config = new CustTcpSocketChannelConfig(this, socket); if (connected) { this.OnConnected(); } }
/// <summary> /// Create a new instance /// /// @param parent the {@link Channel} which created this instance or {@code null} if it was created by the user /// @param socket the {@link SocketChannel} which will be used /// </summary> public TcpSocketChannel(IChannel parent, Socket socket) : base(parent, socket) { this.config = new TcpSocketChannelConfig(this, socket); }