Client LuaCsForBarotrauma
DualStackP2PSocket Class Reference
Inheritance diagram for DualStackP2PSocket:
P2PSocket

Public Member Functions

override void ProcessIncomingMessages ()
 
override bool SendMessage (P2PEndpoint endpoint, IWriteMessage outMsg, DeliveryMethod deliveryMethod)
 
override void CloseConnection (P2PEndpoint endpoint)
 
override void Dispose ()
 
- Public Member Functions inherited from P2PSocket
readonly record struct Error (ImmutableArray<(ErrorCode Code, string AdditionalInfo)> CodesAndInfo)
 
readonly record struct Callbacks (Predicate< P2PEndpoint > OnIncomingConnection, Action< P2PEndpoint, PeerDisconnectPacket > OnConnectionClosed, Action< P2PEndpoint, IReadMessage > OnData)
 

Static Public Member Functions

static Result< P2PSocket, ErrorCreate (Callbacks callbacks)
 

Additional Inherited Members

- Public Types inherited from P2PSocket
enum class  ErrorCode {
  EosNotInitialized , EosNotLoggedIn , FailedToCreateEosP2PSocket , SteamNotInitialized ,
  FailedToCreateSteamP2PSocket
}
 
- Protected Member Functions inherited from P2PSocket
 P2PSocket (Callbacks callbacks)
 
- Protected Attributes inherited from P2PSocket
readonly Callbacks callbacks
 

Detailed Description

Definition at line 5 of file DualStackP2PSocket.cs.

Member Function Documentation

◆ CloseConnection()

override void DualStackP2PSocket.CloseConnection ( P2PEndpoint  endpoint)
virtual

Implements P2PSocket.

Definition at line 58 of file DualStackP2PSocket.cs.

◆ Create()

static Result<P2PSocket, Error> DualStackP2PSocket.Create ( Callbacks  callbacks)
static

Definition at line 20 of file DualStackP2PSocket.cs.

◆ Dispose()

override void DualStackP2PSocket.Dispose ( )
virtual

Implements P2PSocket.

Definition at line 77 of file DualStackP2PSocket.cs.

◆ ProcessIncomingMessages()

override void DualStackP2PSocket.ProcessIncomingMessages ( )
virtual

Implements P2PSocket.

Definition at line 39 of file DualStackP2PSocket.cs.

◆ SendMessage()

override bool DualStackP2PSocket.SendMessage ( P2PEndpoint  endpoint,
IWriteMessage  outMsg,
DeliveryMethod  deliveryMethod 
)
virtual

Implements P2PSocket.

Definition at line 45 of file DualStackP2PSocket.cs.