TwclServerDataConnection Class
The base class for the server connection that requires data exchange with a remote device.
wclConnections.TwclCustomConnection
wclConnections.TwclServerConnection
wclConnections.TwclServerDataConnection
wclBluetooth.TwclRfCommServerConnection
type TwclServerDataConnection = class(TwclServerConnection) end;
The TwclServerDataConnection type exposes the following members.
Name | Description | |
---|---|---|
Create | Creates a new client data connection. (Overrides TwclServerConnection.Create.) |
Name | Description | |
---|---|---|
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.) |
Name | Description | |
---|---|---|
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 | |
DoConnect(TwclServerClientConnection,Integer) | Fires the | |
DoData(TwclServerClientDataConnection,Pointer,Cardinal) | Fires the | |
DoDisconnect(TwclServerClientConnection,Integer) | Fires the | |
DoListen | Fires the | |
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).) |
Name | Description | |
---|---|---|
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.) |