Loading...
Searching...
No Matches
epsim.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017-2018 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
26
27#include "net/sock/udp.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
36enum {
40};
41
56
65
66#ifdef __cplusplus
67}
68#endif
69
int cord_epsim_state(void)
Get the status of the latest registration procedure.
int cord_epsim_register(const sock_udp_ep_t *remote)
Initiate the node registration by sending an empty CoAP POST message to the RD server's /....
@ CORD_EPSIM_ERROR
on failing to send POST request
Definition epsim.h:38
@ CORD_EPSIM_OK
all good
Definition epsim.h:37
@ CORD_EPSIM_BUSY
endpoint registration is in progress
Definition epsim.h:39
struct _sock_tl_ep sock_udp_ep_t
An end point for a UDP sock object.
Definition udp.h:292
UDP sock definitions.