TwclServerClientConnection Class

The base class for all server client connection.

Namespace: wclConnections
TObject
  wclConnections.TwclCustomConnection
    wclConnections.TwclServerClientConnection
      wclConnections.TwclServerClientDataConnection
type
 TwclServerClientConnection = class(TwclCustomConnection)
 end;

The TwclServerClientConnection type exposes the following members.

Show:
 NameDescription
Create

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

Destroy

Frees the connection. (Overrides TwclCustomConnection.Destroy.)

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

Top
Show:
 NameDescription
Accept(TwclServerConnection,Pointer,Cardinal)

The method accepts the client connection request.

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.)

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.

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

Top

The class provides the basic methods for server connections.