Space Engineers
Classes | Public Member Functions | List of all members
VRage.Network.MyPacketQueue Class Reference

Public Member Functions

 MyPacketQueue (int typicalMaxPacketSize, Action< BitStream, EndpointId > sender)
 
void Clear ()
 Clears whole queue. More...
 
void Enqueue (BitStream stream, float priority, EndpointId recipient)
 Sends message, when broadcasting, recipient is peer who won't receive the message. More...
 
int Send (int maxBytesToSend=int.MaxValue)
 Sends packets in queue, sends no more than maxBytesToSend. Returns number of bytes sent. More...
 
void Dispose ()
 

Detailed Description

Definition at line 7 of file MyPacketQueue.cs.

Constructor & Destructor Documentation

VRage.Network.MyPacketQueue.MyPacketQueue ( int  typicalMaxPacketSize,
Action< BitStream, EndpointId sender 
)
inline

Definition at line 34 of file MyPacketQueue.cs.

Member Function Documentation

void VRage.Network.MyPacketQueue.Clear ( )
inline

Clears whole queue.

Definition at line 55 of file MyPacketQueue.cs.

void VRage.Network.MyPacketQueue.Dispose ( )
inline

Definition at line 110 of file MyPacketQueue.cs.

void VRage.Network.MyPacketQueue.Enqueue ( BitStream  stream,
float  priority,
EndpointId  recipient 
)
inline

Sends message, when broadcasting, recipient is peer who won't receive the message.

Definition at line 68 of file MyPacketQueue.cs.

int VRage.Network.MyPacketQueue.Send ( int  maxBytesToSend = int.MaxValue)
inline

Sends packets in queue, sends no more than maxBytesToSend. Returns number of bytes sent.

Definition at line 82 of file MyPacketQueue.cs.


The documentation for this class was generated from the following file: