lwm2m_client_connection.h
Go to the documentation of this file.
1 /*******************************************************************************
2 *
3 * Copyright (c) 2015 Intel Corporation and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * and Eclipse Distribution License v1.0 which accompany this distribution.
7 *
8 * The Eclipse Public License is available at:
9 * http://www.eclipse.org/legal/epl-v10.html
10 * The Eclipse Distribution License is available at:
11 * http://www.eclipse.org/org/documents/edl-v10.php
12 *
13 * Contributors:
14 * Simon Bernard - initial API and implementation
15 * Christian Renz - Please refer to git log
16 * Christian Manal - Ported to RIOT OS
17 *
18 *******************************************************************************/
19 /*
20  * Copyright (C) 2018 Beduino Master Projekt - University of Bremen
21  * Copyright (C) 2019 HAW Hamburg
22  *
23  * This file is subject to the terms and conditions of the GNU Lesser
24  * General Public License v2.1. See the file LICENSE in the top level
25  * directory for more details.
26  */
27 
40 #ifndef LWM2M_CLIENT_CONNECTION_H
41 #define LWM2M_CLIENT_CONNECTION_H
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 #include "net/ipv6/addr.h"
48 #include "net/sock/udp.h"
49 
50 #include "lwm2m_client.h"
51 #include "lwm2m_client_config.h"
52 
53 #define SCHEME_COAPS "coaps://"
54 #define SCHEME_COAP "coap://"
55 
66  lwm2m_client_connection_t *conn_list,
67  const sock_udp_ep_t *remote);
68 
81  uint8_t *buffer, size_t num_bytes,
82  lwm2m_client_data_t *client_data);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* LWM2M_CLIENT_CONNECTION_H */
89 
lwm2m_client_connection_find
lwm2m_client_connection_t * lwm2m_client_connection_find(lwm2m_client_connection_t *conn_list, const sock_udp_ep_t *remote)
Tries to find an existing connection based on a remote UDP endpoint.
udp.h
UDP sock definitions.
lwm2m_client_config.h
LwM2M client configurations.
addr.h
Definitions for IPv6 addresses.
lwm2m_client_connection
Connection to server descriptor.
Definition: lwm2m_client.h:46
lwm2m_client.h
Definitions and public API for a LwM2M client using Wakaama.
lwm2m_client_data_t
LwM2M client descriptor.
Definition: lwm2m_client.h:55
_sock_tl_ep
Common IP-based transport layer end point.
Definition: sock.h:213
lwm2m_connection_handle_packet
int lwm2m_connection_handle_packet(lwm2m_client_connection_t *conn, uint8_t *buffer, size_t num_bytes, lwm2m_client_data_t *client_data)
Handles a received packet from a connection.