BACnetStack_RegisterHookAbort
void BACnetStack_RegisterHookAbort( void (*FPHookAbort)(const uint8_t originalInvokeId, const bool sentByServer, const uint32_t abortReason, const uint8_t *connectionString, const uint8_t connectionStringLength, const uint32_t networkPortInstance, const uint16_t sourceNetwork, const uint8_t *sourceAddress, const uint8_t sourceAddressLength));Registers a hook the stack calls when an Abort PDU is received for a confirmed request this client sent.
Fires from inside BACnetStack_Tick().
sentByServer carries the Abort PDU’s own server bit: true means the peer aborted as the server of the transaction, false means it aborted as the client. The stack removes the request from its pending-request table BEFORE calling the hook, so no timeout will follow for that invoke-id. The hook returns void.
See also: CASBACnetStack::FPHookAbort
Parameters
Section titled “Parameters”| Parameter | Direction | Description |
|---|---|---|
FPHookAbort |
in | The function pointer for the HookAbort function. See CASBACnetStack::FPHookAbort for more info. |
Callback type
Section titled “Callback type”Topic: Client response hooks. Declared in CASBACnetStackDLL.h.