rpma_conn_next_event(3)
β¨ rpma_conn_next_event β¨
okay so bestie, welcome to rpma_conn_next_event(3) β that's section 3 of the RPMA Programmer's Manual, and yes we're reading a manpage together, it's giving study date energy π
πΈ NAME πΈ
rpma_conn_next_event β obtain a connection status π
like⦠you wanna know what your connection is doing? this is the girl for the job.
π SYNOPSIS π
#include <librpma.h>
struct rpma_conn;
enum rpma_conn_event {
RPMA_CONN_UNDEFINED = -1,
RPMA_CONN_ESTABLISHED,
RPMA_CONN_CLOSED,
RPMA_CONN_LOST,
RPMA_CONN_REJECTED,
RPMA_CONN_UNREACHABLE
};
int rpma_conn_next_event(struct rpma_conn *conn,
enum rpma_conn_event *event);
no cap, that's the whole vibe right there π
π¦ DESCRIPTION π¦
rpma_conn_next_event() obtains the next event from the connection. literally just the next one, bestie β one at a time, main character pacing, we love that for us β¨
Types of events:
RPMA_CONN_UNDEFINEDβ undefined connection event π (it's giving mystery, but not in a cute way)RPMA_CONN_ESTABLISHEDβ connection established π the slay era beginsRPMA_CONN_CLOSEDβ connection closed π a peaceful goodbyeRPMA_CONN_LOSTβ connection lost π where did she GORPMA_CONN_REJECTEDβ connection rejected π oofRPMA_CONN_UNREACHABLEβ connection unreachable π¦ can't get there from here, bestie
β RETURN VALUE β
The rpma_conn_next_event() function returns 0 on success or a negative error code on failure.
so 0 = we ate π₯, negative = we did NOT eat π
π ERRORS π
rpma_conn_next_event() can fail with the following errors:
RPMA_E_INVALβconnoreventis NULL π©RPMA_E_UNKNOWNβ unexpected event π plot twist nobody asked forRPMA_E_PROVIDERβrdma_get_cm_event()orrdma_ack_cm_event()failed π not our fault, the provider did itRPMA_E_NOMEMβ out of memory π brain empty
π SEE ALSO π
iykyk β go read those next, bestie, the lore is deep π«Ά
RPMA Β· version vibes from 01 April 2024 Β· rpma_conn_next_event(3) β and that's the whole page, periodt πβ¨π
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms