Skip to content

Mirror::SimpleWeb::Connection

Inherits from IDisposable

Public Functions

Name
Connection(TcpClient client, Action< Connection > onDispose)
void Dispose()
disposes client and stops threads
override string ToString()

Public Attributes

Name
const int IdNotSet
TcpClient client
int connId
Stream stream
Thread receiveThread
Thread sendThread
ManualResetEventSlim sendPending
ConcurrentQueue< ArrayBuffer > sendQueue
Action< Connection > onDispose

Public Functions Documentation

function Connection

inline Connection(
    TcpClient client,
    Action< Connection > onDispose
)

function Dispose

inline void Dispose()

disposes client and stops threads

function ToString

inline override string ToString()

Public Attributes Documentation

variable IdNotSet

const int IdNotSet = -1;

variable client

TcpClient client;

variable connId

int connId = IdNotSet;

variable stream

Stream stream;

variable receiveThread

Thread receiveThread;

variable sendThread

Thread sendThread;

variable sendPending

ManualResetEventSlim sendPending = new ManualResetEventSlim(false);

variable sendQueue

ConcurrentQueue< ArrayBuffer > sendQueue = new ConcurrentQueue<[ArrayBuffer](/Documentation/Cops%20And%20Robbers/Classes/classMirror_1_1SimpleWeb_1_1ArrayBuffer/)>();

variable onDispose

Action< Connection > onDispose;

Updated on 27 January 2021 at 19:35:32 UTC