tModLoader v2024.11
A mod to make and play Terraria mods
IPCBase Class Reference

Inherited by IPCClient, and IPCServer.

Public Member Functions

virtual void ProcessDataArriveEvent ()
 
virtual void ReadCallback (IAsyncResult result)
 
virtual void Reset ()
 
virtual bool Send (byte[] data)
 
virtual bool Send (string value)
 

Protected Member Functions

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

Protected Attributes

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

Properties

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