public TcpSocketRioServerConfiguration()
        {
            InitialBufferAllocationCount = 100;
            ReceiveBufferSize            = 8192;

            FrameBuilder = new SizePrefixedFrameBuilder();
        }
        public TcpSocketRioServerConfiguration()
        {
            InitialBufferAllocationCount = 100;
            ReceiveBufferSize = 8192;

            FrameBuilder = new SizePrefixedFrameBuilder();
        }
Esempio n. 3
0
        public AsyncTcpSocketServerConfiguration()
        {
            InitialBufferAllocationCount = 100;
            ReceiveBufferSize            = 8192;
            SendBufferSize = 8192;
            ReceiveTimeout = TimeSpan.Zero;
            SendTimeout    = TimeSpan.Zero;
            NoDelay        = true;
            LingerState    = new LingerOption(false, 0); // The socket will linger for x seconds after Socket.Close is called.

            PendingConnectionBacklog = 200;
            AllowNatTraversal        = true;

            SslEnabled                    = false;
            SslServerCertificate          = null;
            SslEncryptionPolicy           = EncryptionPolicy.RequireEncryption;
            SslEnabledProtocols           = SslProtocols.Ssl3 | SslProtocols.Tls;
            SslClientCertificateRequired  = true;
            SslCheckCertificateRevocation = false;
            SslPolicyErrorsBypassed       = false;

            ConnectTimeout = TimeSpan.FromSeconds(15);
            FrameBuilder   = new SizePrefixedFrameBuilder();
        }