Show / Hide Table of Contents

Class CProxy

A proxy that supports http(s) and socks4/4a/5 protocols, authorization and chaining.

Inheritance
System.Object
CProxy
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.Models
Assembly: RuriLib.dll
Syntax
public class CProxy

Constructors

| Improve this Doc View Source

CProxy()

Needed for NoSQL deserialization.

Declaration
public CProxy()
| Improve this Doc View Source

CProxy(String, ProxyType)

Creates a proxy given a string and a proxy type.

Declaration
public CProxy(string proxy, ProxyType type)
Parameters
Type Name Description
System.String proxy

The unparsed proxy string

Extreme.Net.ProxyType type

The proxy type

Properties

| Improve this Doc View Source

Cfduid

The cfduid cookie from Cloudflare.

Declaration
[BsonIgnore]
public string Cfduid { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Clearance

The clearance cookie from Cloudflare.

Declaration
[BsonIgnore]
public string Clearance { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Country

The country of the proxy's ip.

Declaration
public string Country { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

HasNext

Whether the proxy has a successor in the Proxy Chain.

Declaration
[BsonIgnore]
public bool HasNext { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Hooked

The number of bots the proxy is hooked to.

Declaration
[BsonIgnore]
public int Hooked { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Host

The Host string parsed from the proxy.

Declaration
[BsonIgnore]
public string Host { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Id

Needed for NoSQL storage.

Declaration
public Guid Id { get; set; }
Property Value
Type Description
System.Guid
| Improve this Doc View Source

IsNumeric

Whether the proxy is numeric.

Declaration
[BsonIgnore]
public bool IsNumeric { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsValidNumeric

Whether the proxy is a valid numeric proxy.

Declaration
[BsonIgnore]
public bool IsValidNumeric { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

LastChecked

When the proxy was last checked.

Declaration
public DateTime LastChecked { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

LastUsed

When the proxy was last used.

Declaration
public DateTime LastUsed { get; set; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

Next

The next proxy object in a Proxy Chain.

Declaration
public CProxy Next { get; set; }
Property Value
Type Description
CProxy
| Improve this Doc View Source

Password

The password used for authentication (empty if none).

Declaration
public string Password { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Ping

The response delay of the proxy.

Declaration
public int Ping { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Port

The Port string parsed from the proxy.

Declaration
[BsonIgnore]
public string Port { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Proxy

The unparsed proxy string.

Declaration
public string Proxy { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Status

The status of the proxy.

Declaration
[BsonIgnore]
public Status Status { get; set; }
Property Value
Type Description
Status
| Improve this Doc View Source

Type

The type of proxy.

Declaration
public ProxyType Type { get; set; }
Property Value
Type Description
Extreme.Net.ProxyType
| Improve this Doc View Source

UsedAgo

How long ago the proxy was used.

Declaration
[BsonIgnore]
public TimeSpan UsedAgo { get; }
Property Value
Type Description
System.TimeSpan
| Improve this Doc View Source

Username

The username used for authentication (empty if none).

Declaration
public string Username { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Uses

The number of times the proxy was used for a check.

Declaration
[BsonIgnore]
public int Uses { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Working

The Working Status of the proxy.

Declaration
public ProxyWorking Working { get; set; }
Property Value
Type Description
ProxyWorking

Methods

| Improve this Doc View Source

GetClient()

Gets the ProxyClient related to the specific proxy type.

Declaration
public ProxyClient GetClient()
Returns
Type Description
Extreme.Net.ProxyClient

The ProxyClient to be used in a HttpRequest

| Improve this Doc View Source

Parse(String)

Parses a CProxy object from an advanced string. Supports Proxy Chains.

Declaration
public CProxy Parse(string proxy)
Parameters
Type Name Description
System.String proxy

The string to parse the proxy from

Returns
Type Description
CProxy

The parsed CProxy object

  • Improve this Doc
  • View Source
Back to top Generated by DocFX