DL Logo

HFTServer Typedefs

HFTServer

Header: ASExpT.h:614

Description

Each HFT is serviced by an HFT server. The HFT server is responsible for handling requests to obtain or destroy its HFT. An HFTServer is an object that manages several versions of an HFT for different clients which may have been compiled with different versions of the HFT's API.

Syntax

typedef struct _t_HFTServer *HFTServer;

Returned From

Used By

HFTServer Callback Signatures

HFTServerDestroyProc

Header: ASExpT.h:640

Description

A callback for an HFT server. This destroys the specified HFT (for example, by calling HFTServerDestroy()).

Related Methods

Syntax

void HFTServerDestroyProc(HFTServer hftServer, void *rock);

Parameters

hftServer
IN/OUT The HFT server associated with this destroy proc.
rock
IN/OUT User-supplied data that was passed in the call to HFTServerNew().

Used By

HFTServer Functions

HFTServerDestroy

Header: ASProcs.h:203

Description

Destroys an HFT server. Call this method only if the HFT will not be used again.

Related Methods

Syntax

void HFTServerDestroy(HFTServer hftServer);

Parameters

hftServer
IN/OUT The HFT server to destroy.

HFTServerNew

Header: ASProcs.h:192

Description

Creates a new Host Function Table (HFT) server. An HFT server is responsible for creating an instance of an HFT with the specified version number, and destroying the HFT.

Related Methods

HFTNewEx HFTServerDestroy

Syntax

HFTServer HFTServerNew(const char *name, HFTServerProvideHFTProc serverProc, HFTServerDestroyProc destroyProc, void *clientData);

Parameters

name
The new HFT server's name.
serverProc
(Required) A user-supplied callback that provides an HFT when given a version number. This procedure is called by ASExtensionMgrGetHFT() when another plug-in imports the HFT.
destroyProc
(Optional) A user-supplied callback that destroys the specified HFT (this generally means deallocating the memory associated with the HFT). This procedure is called by HFTDestroy().
clientData
A pointer to user-supplied data to pass to the HFT server.

Returns

The newly created HFT server.