Telepathy::Server
Inherits from Common
Public Functions
Name | |
---|---|
int | NextConnectionId() |
bool | Start(int port) |
void | Stop() |
bool | Send(int connectionId, byte [] data) |
string | GetClientAddress(int connectionId) |
bool | Disconnect(int connectionId) |
Public Attributes
Name | |
---|---|
TcpListener | listener |
bool | Active |
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 NextConnectionId
inline int NextConnectionId()
function Start
inline bool Start(
int port
)
function Stop
inline void Stop()
function Send
inline bool Send(
int connectionId,
byte [] data
)
function GetClientAddress
inline string GetClientAddress(
int connectionId
)
function Disconnect
inline bool Disconnect(
int connectionId
)
Public Attributes Documentation
variable listener
TcpListener listener;
variable Active
bool Active => listenerThread != null && listenerThread.IsAlive;
Updated on 20 January 2021 at 18:58:26 UTC