Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }