Table of Contents

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

Host string

The domain name, or null when the message carries an IP address.

Address IPAddress

The IP address, or null when the message carries a domain name.

Port int

The port.

Properties

Address

The IP address, or null when the message carries a domain name.

public IPAddress? Address { get; init; }

Property Value

IPAddress

Host

The domain name, or null when the message carries an IP address.

public string? Host { get; init; }

Property Value

string

Port

The port.

public int Port { get; init; }

Property Value

int