Table of Contents

Struct IPEndPointPair

Namespace
VpnHood.Net.Toolkit.Net
Assembly
VpnHood.Net.Toolkit.dll

Represents a connection's local and remote endpoints.

public readonly record struct IPEndPointPair : IEquatable<IPEndPointPair>
Implements
Inherited Members

Constructors

IPEndPointPair(IPEndPoint, IPEndPoint)

Represents a connection's local and remote endpoints.

public IPEndPointPair(IPEndPoint LocalEndPoint, IPEndPoint RemoteEndPoint)

Parameters

LocalEndPoint IPEndPoint

The local endpoint.

RemoteEndPoint IPEndPoint

The remote endpoint.

Properties

LocalEndPoint

The local endpoint.

public IPEndPoint LocalEndPoint { get; init; }

Property Value

IPEndPoint

RemoteEndPoint

The remote endpoint.

public IPEndPoint RemoteEndPoint { get; init; }

Property Value

IPEndPoint

Methods

ToString()

Returns the pair as local->remote, redacted as VhLogger.Format redacts an endpoint.

public override string ToString()

Returns

string

The text.