radcli_request_done(3)
π radcli_request_done β bestie, is my request done yet?
okay so this is a page from the Radius client library manpage set, and honestly it's a short one but it's important, so let's get into it π«Ά
β¨ NAME β¨
radcli_request_done β reports r's outcome once radcli_ctx_dispatch() has resolved it. It's a pure state query, like literally just asking "are we there yet?" β it performs no I/O of its own. π
πΈ SYNOPSIS πΈ
#include <radcli/>
int radcli_request_done(
radcli_request *r
);
π¦ DESCRIPTION π¦
Okay so here's the lore. Since REQ-NET2-SEND-016/013, r shares ctx's request socket/session with every other concurrently in-flight RADCLI_REQUEST_SENDONLY request β they're all carpooling in the same socket, basically ππ¨ β and radcli_ctx_dispatch() is the thing that actually drives it to completion (draining replies, retransmitting, expiring on timeout). So radcli_request_done() is not doing any of that work itself. It never performs I/O, periodt. Which means polling it any number of times between radcli_ctx_dispatch() calls is free β spam it as much as you want, it costs you nothing π
The terminal result is reported once. After that, the reply stays readable with radcli_request_code() / _attrs(), so you don't lose access to it or anything. π
π PARAMETERS π
rβ a request thatradcli_request_perform(r, RADCLI_REQUEST_SENDONLY)returnedRADCLI_OKfor. That's the entry ticket, no ticket no ride ποΈ
π RETURN VALUE π
RADCLI_AGAINβ still waiting π callradcli_ctx_get_poll()/radcli_ctx_dispatch()and try again.RADCLI_OKβ a validated reply was received! π read it withradcli_request_code()/_attrs(), same asradcli_request_perform().RADCLI_TIMEOUTβ retries are exhausted πRADCLI_ERRORβ on failure, or ifrwas never sent withRADCLI_REQUEST_SENDONLY, or if its terminal result was already returned. Basically the "girl what" response π
β SEE ALSO β
radcli_aaa(3)radcli_request_attrs(3)radcli_request_code(3)radcli_request_free(3)radcli_request_new(3)radcli_request_perform(3)radcli_request_server(3)
and that's the whole page, bestie π this one's from the radcli source, dated 2026-10-10 β go forth and poll responsibly, mwah πβ¨
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms