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

Public Member Functions

void Init (string clientName)
 
void ConnectTo (string serverName)
 
void Tick ()
 
override void ReadCallback (IAsyncResult result)
 
virtual void Reset ()
 
virtual void ProcessDataArriveEvent ()
 
virtual bool Send (string value)
 
virtual bool Send (byte[] data)
 

Protected Member Functions

void AddPackToList (List< byte > pack)
 
List< List< byte > > GetPackList ()
 
bool HaveDataToRead ()
 
virtual bool BeginReadData ()
 
virtual void SendCallback (IAsyncResult result)
 

Protected Attributes

volatile bool _pipeBrokenFlag
 
PipeStream _pipeStream
 
CancellationTokenSource _cancelTokenSrc
 
Action< byte[]> _onDataArrive
 

Properties

override Action< byte[]> OnDataArrive
 
int BufferSize [get, set]
 

Events

Action OnConnected
 

Private Member Functions

NamedPipeClientStream GetPipeStream ()
 
void ProcessConnectedEvent ()
 
void ProcessPipeBrokenEvent ()
 
void CheckFlagAndFireEvent ()
 

Private Attributes

bool _connectedFlag
 
List< List< byte > > _producer = new List<List<byte>>()
 
List< List< byte > > _consumer = new List<List<byte>>()
 
List< byte > _totalData = new List<byte>()
 
object _listLock = new object()
 
volatile bool _haveDataToReadFlag
 

Detailed Description

Definition at line 8 of file IPCClient.cs.


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