Skip to content

ClientSocket ​

Manages the socket connection and inserts new commands into the CommunicationQueue for the Scheduler to execute.

Kind: Class

Namespace: ConnectorLib.sd2snes

Inheritance: WebSocketBehavior → IDisposable → IWebSocketSession

Public Constructors

ClientSocket(ConcurrentDictionary ports)

Creates a new instance of the ConnectorLib.sd2snes.ClientSocket class.

Public Member Functions

void

Dispose()

Clean up any resources being used.

Properties

string

Name

[get, ]

Gets the unique identifier for this client socket.

bool

ConnectionState

[get, ]

Gets the unique identifier for this client socket.

BlockingCollection

DataQueue

[get, ]

The queue for data received from the server.

Events

EventHandler<bool>

ConnectionStateChanged

Called when the connection state changes.

Action

Shutdown

Called when the server is shutting down.