Struct Socks5Endpoint
- Namespace
- VpnHood.Net.Proxies.Socks5Proxy
- Assembly
- VpnHood.Net.Proxies.dll
Represents an address and port in a SOCKS5 message: a domain name or an IP address.
public readonly record struct Socks5Endpoint : IEquatable<Socks5Endpoint>
- Implements
- Inherited Members
Constructors
Socks5Endpoint(string?, IPAddress?, int)
Represents an address and port in a SOCKS5 message: a domain name or an IP address.
public Socks5Endpoint(string? Host, IPAddress? Address, int Port)
Parameters
HoststringThe domain name, or null when the message carries an IP address.
AddressIPAddressThe IP address, or null when the message carries a domain name.
PortintThe port.
Properties
Address
The IP address, or null when the message carries a domain name.
public IPAddress? Address { get; init; }
Property Value
Host
The domain name, or null when the message carries an IP address.
public string? Host { get; init; }
Property Value
Port
The port.
public int Port { get; init; }