TwclClientConnection Class

The base class for all client oriented connections.

Namespace: wclConnections
type
 TwclClientConnection = class(TwclCustomConnection)
 end;

The TwclClientConnection type exposes the following members.

Show:
 NameDescription
Create

Creates a new client connection. (Overrides TwclCustomConnection.Create.)

Destroy

Frees the connection. (Overrides TwclCustomConnection.Destroy.)

Top
Show:
 NameDescription
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.

Top
Show:
 NameDescription
Connect(Cardinal)

Connects to a remote device.

Disconnect

Disconnects from the connected remote device.

DoConnect(Integer)

Fires the OnConnect event.

DoDisconnect(Integer)

Fires the OnDisconnect event.

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.

Top
Show:
 NameDescription
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.

Top

The class provides the basic methods for client connections.