Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Social.Steam.SteamP2PReader Class Reference

Classes

class  ReadResult
 

Public Member Functions

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

Public Attributes

object SteamLock = new object()
 

Private Member Functions

bool IsPacketAvailable (out uint size)
 

Private Attributes

Dictionary< CSteamID, Queue< ReadResult > > _pendingReadBuffers = new Dictionary<CSteamID, Queue<ReadResult>>()
 
Queue< CSteamID > _deletionQueue = new Queue<CSteamID>()
 
Queue< byte[]> _bufferPool = new Queue<byte[]>()
 
int _channel
 
OnReadEvent _readEvent
 

Static Private Attributes

const int BUFFER_SIZE = 4096
 

Detailed Description

Definition at line 7 of file SteamP2PReader.cs.


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