TwclServerDataConnection Class

The base class for the server connection that requires data exchange with a remote device.

Namespace: wclConnections
type
 TwclServerDataConnection = class(TwclServerConnection)
 end;

The TwclServerDataConnection type exposes the following members.

Show:
 NameDescription
Create

Creates a new client data connection. (Overrides TwclServerConnection.Create.)

Top
Show:
 NameDescription
ClientsCount

Gets the number of connected clients. (Inherited from TwclServerConnection.)

Clients[Integer]

Gets a connected client by its index. (Inherited from TwclServerConnection.)

OnListen

The event fires when the serve ris ready to accept incomming connections (is in listening state). (Inherited from TwclServerConnection.)

Receiver

Gets the connection message receiver object. (Inherited from TwclCustomConnection.)

State

Gets the connection state. (Inherited from TwclServerConnection.)

ThreadId

Gets the connection's thread ID. (Inherited from TwclCustomConnection.)

Top
Show:
 NameDescription
Close

The method disconnects all connected clients and closes the server. (Inherited from TwclServerConnection.)

CreateNewClientConnection(Pointer,Cardinal)

Sends a notification to the main thread to create and init new client connection. (Inherited from TwclServerConnection.)

DoClosed(Integer)

Fires the OnClosed event. (Inherited from TwclServerConnection.)

DoConnect(TwclServerClientConnection,Integer)

Fires the OnConnect event. (Inherited from TwclServerConnection.)

DoData(TwclServerClientDataConnection,Pointer,Cardinal)

Fires the OnData event.

DoDisconnect(TwclServerClientConnection,Integer)

Fires the OnDisconnect event. (Inherited from TwclServerConnection.)

DoListen

Fires the OnListen event. (Inherited from TwclServerConnection.)

Enter

Enters the connection's critical section. (Inherited from TwclCustomConnection.)

HalClose

Implements a hardware-dependent method to stop listening. (Inherited from TwclServerConnection.)

HalCreateClient

The method crteates a hardware and transport-dependent client connection. (Inherited from TwclServerConnection.)

HalListen(THandle)

Implements a hardware-dependent method for listening the client connections. (Inherited from TwclServerConnection.)

HalPrepare

Implements a hardware-dependent code that prepares for listening. (Inherited from TwclServerConnection.)

InternalClose(Integer)

Closes the server. (Inherited from TwclServerConnection.)

Leave

Exists *leaves) the connection's critical section. (Inherited from TwclCustomConnection.)

Listen

The method starts listening for client connections. (Inherited from TwclServerConnection.)

MessageReceived(TwclMessage)

The message receiver calls this method when a new notification message has been received. (Overrides TwclCustomConnection.MessageReceived(TwclMessage).)

SetClientEvents(TwclServerClientConnection)

The method sets the client's event handlers. (Overrides TwclServerConnection.SetClientEvents(TwclServerClientConnection).)

Top
Show:
 NameDescription
OnClosed

The event fires when the server is closed. (Inherited from TwclServerConnection.)

OnConnect

The event fires when a remote client is connected to the server. (Inherited from TwclServerConnection.)

OnData

The event fires when new data is received from the connected remote device.

OnDisconnect

The event fires when a remote client has disconnected from the server. (Inherited from TwclServerConnection.)

Top