Table of Contents

Struct PeerNetworkData.NetworkID

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the network ID of a peer, including its address and port.

public readonly struct PeerNetworkData.NetworkID
Inherited Members

Fields

Address

Gets the address of the peer.

public readonly PeerAddress Address

Field Value

PeerAddress

Port

Gets the port of the peer.

public readonly ushort Port

Field Value

ushort

Methods

ToEndpoint()

Converts the network ID to an IPEndPoint instance.

public IPEndPoint ToEndpoint()

Returns

IPEndPoint

An IPEndPoint representing the peer's address and port.