Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="hostname">The hostname to connect to</param>
 /// <param name="port">The port to connect to</param>
 /// <param name="clientType">The type of connection to make</param>
 /// <param name="ipv6">Indicates whether to use ipv6</param>
 public FixedIpProxyClient(string hostname, int port, IpProxyToken.IpClientType clientType, bool ipv6)
 {
     _hostname = hostname;
     _port = port;
     _ipv6 = ipv6;
     _clientType = clientType;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="hostname">The hostname to connect to</param>
 /// <param name="port">The port to connect to</param>
 /// <param name="clientType">The type of connection to make</param>
 /// <param name="ipv6">Indicates whether to use ipv6</param>
 public FixedIpProxyClient(string hostname, int port, IpProxyToken.IpClientType clientType, bool ipv6)
 {
     _hostname   = hostname;
     _port       = port;
     _ipv6       = ipv6;
     _clientType = clientType;
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="logger"></param>
        /// <param name="hostName"></param>
        /// <param name="port"></param>
        /// <param name="clientType"></param>
        /// <param name="ipv6"></param>
        /// <param name="layers"></param>
        public FixedProxyServer(Logger logger, string hostName, int port, IpProxyToken.IpClientType clientType,
                                bool ipv6, INetworkLayerFactory[] layers) : base(logger)
        {
            _hostName   = hostName;
            _port       = port;
            _clientType = clientType;
            _ipv6       = ipv6;
            _layers     = layers;

            if (!IPAddress.TryParse(_hostName, out _address))
            {
                _address = null;
            }
        }
Exemple #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="logger"></param>
        /// <param name="hostName"></param>
        /// <param name="port"></param>
        /// <param name="clientType"></param>
        /// <param name="ipv6"></param>
        /// <param name="layers"></param>
        public FixedProxyServer(Logger logger, string hostName, int port, IpProxyToken.IpClientType clientType, 
            bool ipv6, INetworkLayerFactory[] layers)
            : base(logger)
        {
            _hostName = hostName;
            _port = port;
            _clientType = clientType;
            _ipv6 = ipv6;
            _layers = layers;

            if (!IPAddress.TryParse(_hostName, out _address))
            {
                _address = null;
            }
        }
 public FixedProxyToken(IPAddress address, string hostname, int port,
                        IpProxyToken.IpClientType clientType, bool ipv6, IDataAdapter adapter)
     : base(address, hostname, port, clientType, ipv6)
 {
     Adapter = adapter;
 }