KNET_HAND..._INTERVAL(3)

πŸ’– KNET_HAND..._INTERVAL(3) πŸ’–

okay bestie, welcome to the Kronosnet Programmer's Manual, the section-3 corner of the libknet universe where we vibe with the C API πŸ¦‹


✨ NAME ✨

knet_handle_get_transport_reconnect_interval β€” get the interval between transport attempts to reconnect a failed link.

like... how long do we wait between tries when a link goes πŸ’€ and we're trying to bring it back? that's the number this hands you.


🌸 SYNOPSIS 🌸

#include <libknet.h>

int knet_handle_get_transport_reconnect_interval(
    knet_handle_t  knet_h,
    uint32_t      *msecs
);

πŸ’… DESCRIPTION πŸ’…

knet_handle_get_transport_reconnect_interval

  • knet_h β€” pointer to knet_handle_t (your main character handle, obvs πŸ‘‘)
  • msecs β€” milliseconds ⏱️

that's it, that's the whole function. she's simple, she's iconic, she tells you the reconnect interval in msecs.


🫢 RETURN VALUE 🫢

knet_handle_get_transport_reconnect_interval returns 0 on success, -1 on error and errno is set. no in-between, no "it depends", periodt βœ‹


πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, fr fr πŸ’œ


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.


ngl the Kronosnet Programmer's Manual page for KNET_HAND..._INTERVAL(3) dropped 2026-07-20 under the kronosnet banner, and that's the whole tea πŸ“ go read your other manpages bestie, ily, slay πŸ’–βœ¨πŸ§š
πŸ“¦ where this page comes from