mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 14:45:51 +03:00
ConnectionInfo exposes NetAddress, NetIdentity
This commit is contained in:
parent
57775e5d10
commit
61b09add87
@ -27,10 +27,15 @@ public struct ConnectionInfo
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public ConnectionState State => state;
|
public ConnectionState State => state;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Remote address. Might be all 0's if we don't know it, or if this is N/A.
|
||||||
|
/// </summary>
|
||||||
|
public NetAddress Address => address;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Who is on the other end? Depending on the connection type and phase of the connection, we might not know
|
/// Who is on the other end? Depending on the connection type and phase of the connection, we might not know
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SteamId SteamId => identity.steamID;
|
public NetIdentity Identity => address;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Basic cause of the connection termination or problem.
|
/// Basic cause of the connection termination or problem.
|
||||||
|
Loading…
Reference in New Issue
Block a user