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> /// </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.