ConnectionInfo exposes NetAddress, NetIdentity

This commit is contained in:
Garry Newman 2020-02-26 15:28:40 +00:00
parent 57775e5d10
commit 61b09add87

View File

@ -27,10 +27,15 @@ public struct ConnectionInfo
/// </summary>
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>
/// Who is on the other end? Depending on the connection type and phase of the connection, we might not know
/// </summary>
public SteamId SteamId => identity.steamID;
public NetIdentity Identity => address;
/// <summary>
/// Basic cause of the connection termination or problem.