Barotrauma Client Doc
Barotrauma.Networking.LidgrenEndpoint Class Reference
Inheritance diagram for Barotrauma.Networking.LidgrenEndpoint:
Barotrauma.Networking.Endpoint

Public Member Functions

 LidgrenEndpoint (IPAddress address, int port)
 
 LidgrenEndpoint (IPEndPoint netEndpoint)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from Barotrauma.Networking.Endpoint
 Endpoint (Address address)
 
override string ToString ()
 

Static Public Member Functions

static new Option< LidgrenEndpointParse (string endpointStr)
 
static Option< LidgrenEndpointParseFromWithHostNameCheck (string endpointStr, bool tryParseHostName)
 
static bool operator== (LidgrenEndpoint a, LidgrenEndpoint b)
 
static bool operator!= (LidgrenEndpoint a, LidgrenEndpoint b)
 
- Static Public Member Functions inherited from Barotrauma.Networking.Endpoint
static Option< EndpointParse (string str)
 
static bool operator== (Endpoint? a, Endpoint? b)
 
static bool operator!= (Endpoint? a, Endpoint? b)
 

Public Attributes

readonly IPEndPoint NetEndpoint
 
- Public Attributes inherited from Barotrauma.Networking.Endpoint
readonly Address Address
 

Properties

int Port [get]
 
override string StringRepresentation [get]
 
override LocalizedString ServerTypeString = TextManager.Get("DedicatedServer") [get]
 
- Properties inherited from Barotrauma.Networking.Endpoint
abstract string StringRepresentation [get]
 
abstract LocalizedString ServerTypeString [get]
 

Detailed Description

Definition at line 7 of file LidgrenEndpoint.cs.

Constructor & Destructor Documentation

◆ LidgrenEndpoint() [1/2]

Barotrauma.Networking.LidgrenEndpoint.LidgrenEndpoint ( IPAddress  address,
int  port 
)

Definition at line 18 of file LidgrenEndpoint.cs.

◆ LidgrenEndpoint() [2/2]

Barotrauma.Networking.LidgrenEndpoint.LidgrenEndpoint ( IPEndPoint  netEndpoint)

Definition at line 20 of file LidgrenEndpoint.cs.

Member Function Documentation

◆ Equals()

override bool Barotrauma.Networking.LidgrenEndpoint.Equals ( object?  obj)
virtual

◆ GetHashCode()

override int Barotrauma.Networking.LidgrenEndpoint.GetHashCode ( )
virtual

◆ operator!=()

static bool Barotrauma.Networking.LidgrenEndpoint.operator!= ( LidgrenEndpoint  a,
LidgrenEndpoint  b 
)
static

◆ operator==()

static bool Barotrauma.Networking.LidgrenEndpoint.operator== ( LidgrenEndpoint  a,
LidgrenEndpoint  b 
)
static

◆ Parse()

static new Option<LidgrenEndpoint> Barotrauma.Networking.LidgrenEndpoint.Parse ( string  endpointStr)
static

Definition at line 25 of file LidgrenEndpoint.cs.

◆ ParseFromWithHostNameCheck()

static Option<LidgrenEndpoint> Barotrauma.Networking.LidgrenEndpoint.ParseFromWithHostNameCheck ( string  endpointStr,
bool  tryParseHostName 
)
static

Definition at line 30 of file LidgrenEndpoint.cs.

Member Data Documentation

◆ NetEndpoint

readonly IPEndPoint Barotrauma.Networking.LidgrenEndpoint.NetEndpoint

Definition at line 9 of file LidgrenEndpoint.cs.

Property Documentation

◆ Port

int Barotrauma.Networking.LidgrenEndpoint.Port
get

Definition at line 11 of file LidgrenEndpoint.cs.

◆ ServerTypeString

override LocalizedString Barotrauma.Networking.LidgrenEndpoint.ServerTypeString = TextManager.Get("DedicatedServer")
get

Definition at line 16 of file LidgrenEndpoint.cs.

◆ StringRepresentation

override string Barotrauma.Networking.LidgrenEndpoint.StringRepresentation
get

Definition at line 13 of file LidgrenEndpoint.cs.