TwclServerClientConnection Class
The base class for all server client connection.
wclConnections.TwclCustomConnection
wclConnections.TwclServerClientConnection
wclConnections.TwclServerClientDataConnection
type TwclServerClientConnection = class(TwclCustomConnection) end;
The TwclServerClientConnection type exposes the following members.
Name | Description | |
---|---|---|
Create | Creates a new server client connection. (Overrides TwclCustomConnection.Create.) | |
Destroy | Frees the connection. (Overrides TwclCustomConnection.Destroy.) |
Name | Description | |
---|---|---|
Disconnected | Gets the connection state. | |
Params | Custom connection parameters. | |
Receiver | Gets the connection message receiver object. (Inherited from TwclCustomConnection.) | |
Server | Gets the client owner. | |
ThreadId | Gets the connection's thread ID. (Inherited from TwclCustomConnection.) |
Name | Description | |
---|---|---|
Accept(TwclServerConnection,Pointer,Cardinal) | The method accepts the client connection request. | |
Disconnect | Disconnects from the connected remote device. | |
DoConnect(Integer) | Fires the | |
DoDisconnect(Integer) | Fires the | |
Enter | Enters the connection's critical section. (Inherited from TwclCustomConnection.) | |
HalAccept | Hardware-dependent method that prepares to communicate with a connected remote client device. | |
HalCommunicate(THandle) | Implements a hardware-dependent code that communicate with the connected remote device. | |
HalDisconnect | Implements a hardware-dependent code that disconnects from the connected remote device. | |
Leave | Exists *leaves) the connection's critical section. (Inherited from TwclCustomConnection.) | |
MessageReceived(TwclMessage) | The message receiver calls this method when a new notification message has been received. (Overrides TwclCustomConnection.MessageReceived(TwclMessage).) | |
NotifyClosed(Integer) | Send a Disconnect notification message. |
Name | Description | |
---|---|---|
OnConnect | The event fires when a connection for a remote device has been accepted. | |
OnDisconnect | The event fires when the remote connected device has been disconnected. |
The class provides the basic methods for server connections.