Пример #1
0
        protected void InitializeTcpClient(bool keepAliveEnabled)
        {
            this.Client.SendBufferSize    = AleStreamParser.AleStreamMaxLength * 5;
            this.Client.ReceiveBufferSize = AleStreamParser.AleStreamMaxLength * 5;

            if (keepAliveEnabled)
            {
                HelperTools.SetKeepAlive(this.Client.Client, AleTunnel.AliveInterval, AleTunnel.AliveTimeout);
            }
        }