libcoap 4.3.5-develop-ea01661
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
128 const coap_address_t *listen_addr);
129
140 void *extra);
141
154 const coap_address_t *local_if,
155 const coap_address_t *server, int default_port);
156
166
178ssize_t coap_netif_strm_read(coap_session_t *session, uint8_t *data,
179 size_t datalen);
180
195 const uint8_t *data, size_t datalen);
196
202void coap_netif_close(coap_session_t *session);
203
210
213#ifdef __cplusplus
214}
215#endif
216
217#endif /* COAP_NETIF_INTERNAL_H */
Pulls together all the internal only header files.
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
void coap_netif_close(coap_session_t *session)
Layer function interface for Netif close for a session.
Definition coap_netif.c:262
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.
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:238
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:217
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...