Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
28
#ifndef NET_CORD_EPSIM_H
29
#define NET_CORD_EPSIM_H
30
31
#include "
net/sock/udp.h
"
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
40
enum
{
41
CORD_EPSIM_OK
= 0,
42
CORD_EPSIM_ERROR
= -1,
43
CORD_EPSIM_BUSY
= -2,
44
};
45
59
int
cord_epsim_register
(
const
sock_udp_ep_t
*remote);
60
68
int
cord_epsim_state
(
void
);
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
/* NET_CORD_EPSIM_H */
75
CORD_EPSIM_ERROR
@ CORD_EPSIM_ERROR
on failing to send POST request
Definition:
epsim.h:42
udp.h
UDP sock definitions.
CORD_EPSIM_BUSY
@ CORD_EPSIM_BUSY
endpoint registration is in progress
Definition:
epsim.h:43
cord_epsim_state
int cord_epsim_state(void)
Get the status of the latest registration procedure.
_sock_tl_ep
Common IP-based transport layer end point.
Definition:
sock.h:213
CORD_EPSIM_OK
@ CORD_EPSIM_OK
all good
Definition:
epsim.h:41
cord_epsim_register
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 /....
Generated on Tue Nov 24 2020 19:46:52 by
1.8.17