Table of Contents

Struct SteamNetworkingIdentity

Namespace
MarymoorStudios.Core.Steamworks
Assembly
MarymoorStudios.Core.Steamworks.dll
public struct SteamNetworkingIdentity : IEquatable<SteamNetworkingIdentity>
Implements
Inherited Members

Constructors

SteamNetworkingIdentity()

public SteamNetworkingIdentity()

Fields

MaxGenericBytesCount

public const int MaxGenericBytesCount = 32

Field Value

int

MaxGenericString

public const int MaxGenericString = 32

Field Value

int

MaxString

public const int MaxString = 128

Field Value

int

MaxXboxPairwiseID

public const int MaxXboxPairwiseID = 33

Field Value

int

Size

public int Size

Field Value

int

Type

public ESteamNetworkingIdentityType Type

Field Value

ESteamNetworkingIdentityType

UnknownRawString

public SteamNetworkingIdentity.UnknownRawStringType UnknownRawString

Field Value

SteamNetworkingIdentity.UnknownRawStringType

Properties

IsFakeIP

public bool IsFakeIP { get; }

Property Value

bool

IsLocalHost

public bool IsLocalHost { get; }

Property Value

bool

IsValid

public readonly bool IsValid { get; }

Property Value

bool

PSNID

public ulong PSNID { get; set; }

Property Value

ulong

SteamID

public CSteamID SteamID { get; set; }

Property Value

CSteamID

SteamID64

public ulong SteamID64 { get; set; }

Property Value

ulong

Methods

Clear()

public void Clear()

Equals(SteamNetworkingIdentity)

Value-based equality.

public readonly bool Equals(SteamNetworkingIdentity other)

Parameters

other SteamNetworkingIdentity

Returns

bool

Equals(object?)

public override readonly bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetFakeIPType()

public ESteamNetworkingFakeIPType GetFakeIPType()

Returns

ESteamNetworkingFakeIPType

GetGenericString()

public string? GetGenericString()

Returns

string

GetHashCode()

public override readonly int GetHashCode()

Returns

int

GetIPAddr()

public SteamNetworkingIPAddr? GetIPAddr()

Returns

SteamNetworkingIPAddr?

GetIPv4()

public uint GetIPv4()

Returns

uint

GetXboxPairwiseID()

public string? GetXboxPairwiseID()

Returns

string

SetGenericBytes(ReadOnlySpan<byte>)

public bool SetGenericBytes(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

Returns

bool

SetGenericString(string)

public bool SetGenericString(string s)

Parameters

s string

Returns

bool

SetIPAddr(SteamNetworkingIPAddr)

public void SetIPAddr(SteamNetworkingIPAddr addr)

Parameters

addr SteamNetworkingIPAddr

SetIPv4Addr(uint, ushort)

public void SetIPv4Addr(uint nIPv4, ushort nPort)

Parameters

nIPv4 uint
nPort ushort

SetLocalHost()

public void SetLocalHost()

SetXboxPairwiseID(string)

public bool SetXboxPairwiseID(string s)

Parameters

s string

Returns

bool

ToString()

public override string ToString()

Returns

string

TryParseString(string, out SteamNetworkingIdentity)

public static bool TryParseString(string s, out SteamNetworkingIdentity address)

Parameters

s string
address SteamNetworkingIdentity

Returns

bool

Operators

operator ==(SteamNetworkingIdentity, SteamNetworkingIdentity)

Value-based equality.

public static bool operator ==(SteamNetworkingIdentity left, SteamNetworkingIdentity right)

Parameters

left SteamNetworkingIdentity
right SteamNetworkingIdentity

Returns

bool

operator !=(SteamNetworkingIdentity, SteamNetworkingIdentity)

Value-based equality.

public static bool operator !=(SteamNetworkingIdentity left, SteamNetworkingIdentity right)

Parameters

left SteamNetworkingIdentity
right SteamNetworkingIdentity

Returns

bool