rc_acct_async(3)

rc_acct_async3

Sends an accounting request to every configured accounting server without waiting for a reply.

Usage

#include <radcli/>

int rc_acct_async(
    rc_handle   *rh,
    uint32_t     nas_port,
    VALUE_PAIR  *send
);

Overview

Selects the server list the same way rc_acct() does (acctserver, or authserver under TLS/DTLS). Unlike rc_acct()/rc_aaa(), which stop at the first server that replies and fail over to the next only after a timeout, this sends to every configured server unconditionally, since there is no reply to judge success or failure by. Intended for best-effort notifications such as an Accounting-Stop sent while an application is shutting down and cannot afford to block.

Parameters

rh

a handle to parsed configuration.

nas_port

the physical NAS port number to include (may be zero).

send

VALUE_PAIR list of attributes to send; NAS-Port and Acct-Delay-Time are filled in as with rc_acct().

Return value

OK_RC (0) if the packet was handed to the socket layer for at least one server, ERROR_RC if no accounting servers are configured or the send failed for all of them.

From radcli 2.0.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.