libcoap 4.3.5-develop-490e4e0
Loading...
Searching...
No Matches
coap_netif_internal.h
Go to the documentation of this file.
1/*
2 * coap_netif_internal.h -- Netif Transport Layer Support for libcoap
3 *
4 * Copyright (C) 2023-2025 Jon Shallow <supjps-libcoap@jpshallow.com>
5 *
6 * SPDX-License-Identifier: BSD-2-Clause
7 *
8 * This file is part of the CoAP library libcoap. Please see README for terms
9 * of use.
10 */
11
17#ifndef COAP_NETIF_INTERNAL_H_
18#define COAP_NETIF_INTERNAL_H_
19
20#include "coap_internal.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
42
51
61 const coap_address_t *listen_addr);
62
74 const coap_address_t *local_if,
75 const coap_address_t *server, int default_port);
76
88ssize_t coap_netif_dgrm_read(coap_session_t *session, coap_packet_t *packet);
89
102 coap_packet_t *packet);
103
116ssize_t coap_netif_dgrm_write(coap_session_t *session, const uint8_t *data,
117 size_t datalen);
118
125
135 const coap_address_t *listen_addr);
136
147 void *extra);
148
161 const coap_address_t *local_if,
162 const coap_address_t *server, int default_port);
163
173
185ssize_t coap_netif_strm_read(coap_session_t *session, uint8_t *data,
186 size_t datalen);
187
202 const uint8_t *data, size_t datalen);
203
210
217
220#ifdef __cplusplus
221}
222#endif
223
224#endif /* COAP_NETIF_INTERNAL_H */
Pulls together all the internal only header files.
void coap_netif_dgrm_close(coap_session_t *session)
Layer function interface for netif datagram close for a session.
Definition coap_netif.c:160
int coap_netif_strm_connect2(coap_session_t *session)
Layer function interface for Netif stream connect (tcp).
ssize_t coap_netif_dgrm_write(coap_session_t *session, const uint8_t *data, size_t datalen)
Function interface for netif datagram data transmission.
Definition coap_netif.c:127
int coap_netif_dgrm_listen(coap_endpoint_t *endpoint, const coap_address_t *listen_addr)
Layer function interface for Netif datagram listem (udp).
ssize_t coap_netif_dgrm_read(coap_session_t *session, coap_packet_t *packet)
Function interface for layer data datagram receiving for sessions.
Definition coap_netif.c:72
void coap_netif_close_ep(coap_endpoint_t *endpoint)
Layer function interface for Netif close for a endpoint.
int coap_netif_strm_connect1(coap_session_t *session, const coap_address_t *local_if, const coap_address_t *server, int default_port)
Layer function interface for Netif stream connect (tcp).
ssize_t coap_netif_dgrm_read_ep(coap_endpoint_t *endpoint, coap_packet_t *packet)
Function interface for layer data datagram receiving for endpoints.
int coap_netif_strm_accept(coap_endpoint_t *endpoint, coap_session_t *session, void *extra)
Layer function interface for Netif stream accept.
void coap_netif_strm_close(coap_session_t *session)
Layer function interface for netif stream close for a session.
Definition coap_netif.c:267
int coap_netif_strm_listen(coap_endpoint_t *endpoint, const coap_address_t *listen_addr)
Layer function interface for Netif stream listem (tcp).
ssize_t coap_netif_strm_write(coap_session_t *session, const uint8_t *data, size_t datalen)
Function interface for netif stream data transmission.
Definition coap_netif.c:244
int coap_netif_dgrm_connect(coap_session_t *session, const coap_address_t *local_if, const coap_address_t *server, int default_port)
Layer function interface for Netif datagram connect (udp).
int coap_netif_available(coap_session_t *session)
Function interface to check whether netif for session is still available.
Definition coap_netif.c:25
ssize_t coap_netif_strm_read(coap_session_t *session, uint8_t *data, size_t datalen)
Function interface for layer data stream receiving.
Definition coap_netif.c:223
int coap_netif_available_ep(coap_endpoint_t *endpoint)
Function interface to check whether netif for endpoint is still available.
Multi-purpose address abstraction.
Abstraction of virtual endpoint that can be attached to coap_context_t.
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...