ConnectSession

public final class ConnectSession

Representing all the information in one connect session.

  • Undocumented

    See more

    Declaration

    Swift

    public final class ConnectSession
  • The requested host.

    This is the host received in the request. May be a domain, a real IP or a fake IP.

    Declaration

    Swift

    public let requestedHost: String
  • The real host for this session.

    If the session is initailized with a host domain, then host == requestedHost. Otherwise, the requested IP address is looked up in the DNS server to see if it corresponds to a domain if fakeIPEnabled is true. Unless there is a good reason not to, any socket shoule connect based on this directly.

    Declaration

    Swift

    public var host: String
  • The requested port.

    Declaration

    Swift

    public let port: Int
  • The rule to use to connect to remote.

    Declaration

    Swift

    public var matchedRule: Rule?
  • Whether If the requestedHost is an IP address.

    Declaration

    Swift

    public let fakeIPEnabled: Bool
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • The resolved IP address.

    Note

    This will always be real IP address.

    Declaration

    Swift

    public lazy var ipAddress: String =
  • The location of the host.

    Declaration

    Swift

    public lazy var country: String =
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Undocumented

    Declaration

    Swift

    public final class ConnectSession
  • Declaration

    Swift

    public var description: String