Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Social.WeGame.WeGameP2PReader Class Reference

Classes

class  ReadResult
 

Public Member Functions

delegate bool OnReadEvent (byte[] data, int size, RailID user)
 
void ClearUser (RailID id)
 
bool IsDataAvailable (RailID id)
 
void SetReadEvent (OnReadEvent method)
 
void SetLocalPeer (RailID rail_id)
 
void ReadTick ()
 
int Receive (RailID user, byte[] buffer, int bufferOffset, int bufferSize)
 

Public Attributes

object RailLock = new object()
 

Private Member Functions

bool IsPacketAvailable (out uint size)
 
RailID GetLocalPeer ()
 
bool IsValid ()
 

Private Attributes

Dictionary< RailID, Queue< ReadResult > > _pendingReadBuffers = new Dictionary<RailID, Queue<ReadResult>>()
 
Queue< RailID > _deletionQueue = new Queue<RailID>()
 
Queue< byte[]> _bufferPool = new Queue<byte[]>()
 
OnReadEvent _readEvent
 
RailID _local_id
 

Static Private Attributes

const int BUFFER_SIZE = 4096
 

Detailed Description

Definition at line 7 of file WeGameP2PReader.cs.


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