Skip to content

Telepathy::Client

Inherits from Common

Public Functions

Name
void Connect(string ip, int port)
void Disconnect()
bool Send(byte [] data)

Public Attributes

Name
TcpClient client
bool Connected
bool Connecting

Additional inherited members

Public Functions inherited from Common

Name
bool GetNextMessage(out Message message)

Protected Functions inherited from Common

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

Public Attributes inherited from Common

Name
int ReceiveQueueCount
bool NoDelay
int MaxMessageSize
int SendTimeout
int messageQueueSizeWarning

Protected Attributes inherited from Common

Name
ConcurrentQueue< Message > receiveQueue

Public Functions Documentation

function Connect

inline void Connect(
    string ip,
    int port
)

function Disconnect

inline void Disconnect()

function Send

inline bool Send(
    byte [] data
)

Public Attributes Documentation

variable client

TcpClient client;

variable Connected

bool Connected => client != null &&
                                 client.Client != null &&
                                 client.Client.Connected;

variable Connecting

bool Connecting => _Connecting;

Updated on 25 January 2021 at 08:57:28 UTC