TwclClientConnection Class
The base class for all client oriented connections.
wclConnections.TwclCustomConnection
wclConnections.TwclClientConnection
wclConnections.TwclClientDataConnection
type TwclClientConnection = class(TwclCustomConnection) end;
The TwclClientConnection type exposes the following members.
Name | Description | |
---|---|---|
Create | Creates a new client connection. (Overrides TwclCustomConnection.Create.) | |
Destroy | Frees the connection. (Overrides TwclCustomConnection.Destroy.) |
Name | Description | |
---|---|---|
Receiver | Gets the connection message receiver object. (Inherited from TwclCustomConnection.) | |
State | Gets the connection state. | |
ThreadId | Gets the connection's thread ID. (Inherited from TwclCustomConnection.) | |
Timeout | Gets the connect timeout value. |
Name | Description | |
---|---|---|
Connect(Cardinal) | Connects to a remote device. | |
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.) | |
HalCommunicate(THandle) | Implements a hardware-dependent code that communicate with the connected remote device. | |
HalConnect(THandle) | Implements a hardware-dependent code that connects to a remote device. | |
HalDisconnect | Implements a hardware-dependent code that disconnects from the connected remote device. | |
InternalDisconnect(Integer) | The internal disconnect method. Disconnects from a 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 to a remote device has been completed (with or without success). | |
OnDisconnect | The event fires when the remote connected device has been disconnected. |
The class provides the basic methods for client connections.