volatile int backlog = 200; //todo: NetUtil.SOMAXCONN; /// <summary> /// Creates a new instance. /// </summary> public DefaultServerSocketChannelConfig(IServerSocketChannel channel, Socket socket) : base(channel) { Contract.Requires(socket != null); this.Socket = socket; }
private int _backlog = 200; //todo: NetUtil.SOMAXCONN; /// <summary> /// Creates a new instance. /// </summary> public DefaultServerSocketChannelConfig(IServerSocketChannel channel, Socket socket) : base(channel) { if (socket is null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.socket); } Socket = socket; }