Example #1
0
        internal StreamTransportSettings(HeliosTransportSettings heliosSettings)
        {
            Config = heliosSettings.Config;

            StreamWriteBufferSize = 4096;
            StreamReadBufferSize  = 65536;
            MaximumFrameSize      = heliosSettings.MaxFrameSize;
            ChunkedReadThreshold  = 4096;
            FrameSizeHardLimit    = 67108864;
        }
Example #2
0
        internal NetworkStreamTransportSettings(HeliosTransportSettings heliosSettings)
            : base(heliosSettings)
        {
            Hostname = heliosSettings.PublicHostname;

            BindIp = GetBindIp(heliosSettings.Hostname, dualMode: false);
            Port   = BindPort = heliosSettings.Port;

            ConnectionTimeout = heliosSettings.ConnectTimeout;
            SendBufferSize    = (int)(heliosSettings.SendBufferSize ?? 256000);
            ReceiveBufferSize = (int)(heliosSettings.ReceiveBufferSize ?? 256000);

            Backlog      = heliosSettings.Backlog;
            TcpNoDelay   = heliosSettings.TcpNoDelay;
            TcpKeepAlive = heliosSettings.TcpKeepAlive;
        }
Example #3
0
        private static NetworkStreamTransportSettings GetSettings(Config config)
        {
            var heliosSettings = new HeliosTransportSettings(config);

            return(new NetworkStreamTransportSettings(heliosSettings));
        }