Loading...
Searching...
No Matches
forward_proxy.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for
6 * more details.
7 */
8
26#ifndef NET_GCOAP_FORWARD_PROXY_H
27#define NET_GCOAP_FORWARD_PROXY_H
28
29#include <stdbool.h>
30#include <errno.h>
31
32#include "net/coap.h"
33#include "net/nanocoap.h"
34#include "net/gcoap.h"
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
47#ifndef CONFIG_GCOAP_FORWARD_PROXY_EMPTY_ACK_MS
48#define CONFIG_GCOAP_FORWARD_PROXY_EMPTY_ACK_MS ((CONFIG_COAP_ACK_TIMEOUT_MS / 4) * 3)
49#endif
56
70 const sock_udp_ep_t *client, const sock_udp_ep_t *local);
71
82 coap_pkt_t *src_pdu,
83 const sock_udp_ep_t *remote);
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* NET_GCOAP_FORWARD_PROXY_H */
gcoap definition
void gcoap_forward_proxy_find_req_memo(gcoap_request_memo_t **memo_ptr, coap_pkt_t *src_pdu, const sock_udp_ep_t *remote)
Finds the memo for an outstanding request within the _coap_state.open_reqs array.
int gcoap_forward_proxy_request_process(coap_pkt_t *pkt, const sock_udp_ep_t *client, const sock_udp_ep_t *local)
Handles proxied requests.
void gcoap_forward_proxy_init(void)
Registers a listener for forward proxy operation.
nanocoap API
Generic CoAP values as defined by RFC7252.
Common IP-based transport layer end point.
Definition sock.h:215
CoAP PDU parsing context structure.
Definition nanocoap.h:232
Memo to handle a response for a request.
Definition gcoap.h:832