libcoap 4.3.5-develop-19cef11
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-2024 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
38
47
57 const coap_address_t *listen_addr);
58
70 const coap_address_t *local_if,
71 const coap_address_t *server, int default_port);
72
84ssize_t coap_netif_dgrm_read(coap_session_t *session, coap_packet_t *packet);
85
98 coap_packet_t *packet);
99
112ssize_t coap_netif_dgrm_write(coap_session_t *session, const uint8_t *data,
113 size_t datalen);
114
124 const coap_address_t *listen_addr);
125
136 void *extra);
137
150 const coap_address_t *local_if,
151 const coap_address_t *server, int default_port);
152
162
174ssize_t coap_netif_strm_read(coap_session_t *session, uint8_t *data,
175 size_t datalen);
176
191 const uint8_t *data, size_t datalen);
192
198void coap_netif_close(coap_session_t *session);
199
206
209#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:125
void coap_netif_close(coap_session_t *session)
Layer function interface for Netif close for a session.
Definition: coap_netif.c:260
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:236
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:215
int coap_netif_available_ep(coap_endpoint_t *endpoint)
Function interface to check whether netif for endpoint is still available.
Multi-purpose address abstraction.
Definition: coap_address.h:148
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...