epsim.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-2018 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
30 #include "net/sock/udp.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
39 enum {
43 };
44 
59 
67 int cord_epsim_state(void);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
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:41
@ CORD_EPSIM_OK
all good
Definition: epsim.h:40
@ CORD_EPSIM_BUSY
endpoint registration is in progress
Definition: epsim.h:42
UDP sock definitions.
Common IP-based transport layer end point.
Definition: sock.h:214