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 
27 #include "net/sock/udp.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 enum {
40 };
41 
56 
64 int cord_epsim_state(void);
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
UDP sock definitions.
Common IP-based transport layer end point.
Definition: sock.h:211