Client LuaCsForBarotrauma
P2PEndpoint.cs
1 #nullable enable
2 namespace Barotrauma.Networking;
3 
4 abstract class P2PEndpoint : Endpoint
5 {
6  protected P2PEndpoint(P2PAddress address) : base(address) { }
7 
9 
10  public new static Option<P2PEndpoint> Parse(string str)
11  => Endpoint.Parse(str).Bind(ep => ep is P2PEndpoint pep ? Option.Some(pep) : Option.None);
12 }
abstract P2PConnection MakeConnectionFromEndpoint()
P2PEndpoint(P2PAddress address)
Definition: P2PEndpoint.cs:6
static new Option< P2PEndpoint > Parse(string str)