Client LuaCsForBarotrauma
LidgrenConnection.cs
1
using
Lidgren.Network;
2
3
namespace
Barotrauma.Networking
4
{
5
sealed
class
LidgrenConnection
:
NetworkConnection
<LidgrenEndpoint>
6
{
7
public
readonly
NetConnection
NetConnection
;
8
9
public
LidgrenConnection
(
NetConnection
netConnection) : base(new
LidgrenEndpoint
(netConnection.RemoteEndPoint))
10
{
11
NetConnection
= netConnection;
12
}
13
14
public
override
bool
AddressMatches
(
NetworkConnection
other)
15
=> other is
LidgrenConnection
{
Endpoint
:
LidgrenEndpoint
otherEndpoint }
16
&&
Endpoint
is
LidgrenEndpoint
endpoint
17
&& endpoint.
Address
== otherEndpoint.Address;
18
}
19
}
Barotrauma.Networking.Endpoint
Definition:
Endpoint.cs:6
Barotrauma.Networking.Endpoint.Address
readonly Address Address
Definition:
Endpoint.cs:11
Barotrauma.Networking.LidgrenConnection
Definition:
LidgrenConnection.cs:6
Barotrauma.Networking.LidgrenConnection.NetConnection
readonly NetConnection NetConnection
Definition:
LidgrenConnection.cs:7
Barotrauma.Networking.LidgrenConnection.LidgrenConnection
LidgrenConnection(NetConnection netConnection)
Definition:
LidgrenConnection.cs:9
Barotrauma.Networking.LidgrenConnection.AddressMatches
override bool AddressMatches(NetworkConnection other)
Similar to EndpointMatches but ignores port on LidgrenEndpoint
Barotrauma.Networking.LidgrenEndpoint
Definition:
LidgrenEndpoint.cs:8
Barotrauma.Networking.NetworkConnection
Definition:
NetworkConnection.cs:12
Barotrauma.Networking.NetworkConnection< LidgrenEndpoint >::Endpoint
new T Endpoint
Definition:
NetworkConnection.cs:15
Barotrauma.Networking
Definition:
LuaBarotraumaAdditions.cs:9
Barotrauma
BarotraumaShared
SharedSource
Networking
Primitives
NetworkConnection
LidgrenConnection.cs
Generated by
1.9.1