terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Telepathy.Server Class Reference
+ Inheritance diagram for Telepathy.Server:
+ Collaboration diagram for Telepathy.Server:

Classes

class  ClientToken
 

Public Member Functions

bool Start (int port)
 
void Stop ()
 
bool Send (int connectionId, byte[] data, int length)
 
string GetClientAddress (int connectionId)
 
bool Disconnect (int connectionId)
 
 Server ()
 
bool GetNextMessage (out Message message)
 

Public Attributes

TcpListener listener
 
bool NoDelay
 
int MaxMessageSize
 
int SendTimeout
 

Static Public Attributes

static int messageQueueSizeWarning
 

Static Protected Member Functions

static bool SendMessagesBlocking (NetworkStream stream, byte[][] messages)
 
static bool ReadMessageBlocking (NetworkStream stream, int MaxMessageSize, out byte[] content)
 
static void ReceiveLoop (int connectionId, TcpClient client, ConcurrentQueue< Message > receiveQueue, int MaxMessageSize)
 
static void SendLoop (int connectionId, TcpClient client, SafeQueue< byte[]> sendQueue, ManualResetEvent sendPending)
 

Protected Attributes

ConcurrentQueue< MessagereceiveQueue
 

Properties

bool Active [get, set]
 
int ReceiveQueueCount [get, set]
 

Private Member Functions

int NextConnectionId (TcpClient newClient)
 
void Listen (int port)
 
void Cleanup ()
 

Private Attributes

Thread listenerThread
 
ConcurrentDictionary< int, Server.ClientTokenclients
 

Static Private Attributes

static int counter
 
static byte[] header
 
static byte[] payload
 

Detailed Description

Definition at line 17 of file Server.cs.


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