rc_check(3)

rc_check3

Asks the server hostname on the specified port for a status message.

Usage

#include <radcli/>

int rc_check(
    rc_handle     *rh,
    char          *host,
    char          *secret,
    unsigned short port,
    char          *msg
);

Overview

Parameters

rh

a handle to parsed configuration.

host

the name of the server.

secret

the secret used by the server.

port

the server's port number.

msg

must be an array of PW_MAX_MSG_SIZE or NULL; will contain the concatenation of any PW_REPLY_MESSAGE received.

Return value

OK_RC (0) on success, negative on failure as return value.

Releases

4 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11–13
  2. Arch

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