internal void Configure()

in src/Net/TcpSettings.cs [99:108]


        internal void Configure(Socket socket)
        {
            if (this.KeepAlive != null) socket.SetTcpKeepAlive(this.KeepAlive);
            if (this.noDelay != null) socket.NoDelay = this.noDelay.Value;
            if (this.receiveBufferSize != null) socket.ReceiveBufferSize = this.receiveBufferSize.Value;
            if (this.receiveTimeout != null) socket.ReceiveTimeout = this.receiveTimeout.Value;
            if (this.sendBufferSize != null) socket.SendBufferSize = this.sendBufferSize.Value;
            if (this.sendTimeout != null) socket.SendTimeout = this.sendTimeout.Value;
            if (this.LingerOption != null) socket.LingerState = this.LingerOption;
        }