Client LuaCsForBarotrauma
SteamP2PConnection.cs
1 namespace Barotrauma.Networking
2 {
3  sealed class SteamP2PConnection : P2PConnection<SteamP2PEndpoint>
4  {
5  public SteamP2PConnection(SteamId steamId) : this(new SteamP2PEndpoint(steamId)) { }
6 
7  public SteamP2PConnection(SteamP2PEndpoint endpoint) : base(endpoint) { }
8 
9  public override bool AddressMatches(NetworkConnection other)
10  => Endpoint == other.Endpoint;
11  }
12 }
Endpoint(Address address)
Definition: Endpoint.cs:13
override bool AddressMatches(NetworkConnection other)
SteamP2PConnection(SteamP2PEndpoint endpoint)