Skip to content
Version 6.1.0
Contact Us

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

Parameter Direction Description
FPHookAbort in The function pointer for the HookAbort function. See CASBACnetStack::FPHookAbort for more info.

FPHookAbort

Topic: Client response hooks. Declared in CASBACnetStackDLL.h.