Ejemplo n.º 1
0
        /// <summary>
        /// Initialize a new instance of <see cref="TcpClient"/> from configuration.
        /// </summary>
        /// <param name="configHost"></param>
        protected TcpJsonClient(string configHost)
        {
            var settings = TcpClientSettings.GetTcpClientSettings(configHost);

            HostName          = settings.HostName;
            Address           = settings.Address;
            IsAsync           = settings.IsAsync;
            Port              = settings.Port;
            ProcessTimeout    = settings.ProcessTimeout;
            ConnectTimeout    = settings.ConnectTimeout;
            ReceiveBufferSize = settings.ReceiveBufferSize;
            SendBufferSize    = settings.SendBufferSize;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize a new instance of <see cref="TcpClient"/> from configuration.
 /// </summary>
 /// <param name="configHost"></param>
 protected TcpClient(string configHost)
 {
     Settings = TcpClientSettings.GetTcpClientSettings(configHost);//, false);
 }