Skip to content

Ping

Types

Name Type Description
mira_net_ping_callback_t void(* )(const mira_net_address_t *address, uint8_t ttl, int32_t rtt, void *storage)

Functions

mira_net_ping_send

mira_status_t mira_net_ping_send(
    const mira_net_address_t*  address,
    mira_net_ping_callback_t   cb,
    void*                      storage);

Sends a ping to the specified address.

Parameters

Parameter Description
address The node address.
cb The callback function.
storage Storage pointer which is used to store optional information to be used by the callback function. E.g. it could be used as an identifier or to pass on a configuration struct.

Return

MIRA_SUCCESS if successful.