using FishNet.Managing; using System; namespace FishNet.Connection { /// /// A container for a connected client used to perform actions on and gather information for the declared client. /// public partial class NetworkConnection : IEquatable { /// /// Returns the address of this connection. /// /// public string GetAddress() { if (!IsValid) return string.Empty; if (NetworkManager == null) return string.Empty; return NetworkManager.TransportManager.Transport.GetConnectionAddress(ClientId); } } }