Forward proxy implementation for GCoAP.
More...
Forward proxy implementation for GCoAP.
- Note
- Does not support CoAPS yet.
- See also
- RFC 7252
◆ gcoap_forward_proxy_find_req_memo()
Finds the memo for an outstanding request within the _coap_state.open_reqs array.
Matches on remote endpoint and token.
- Parameters
-
[out] | memo_ptr | Registered request memo, or NULL if not found |
[in] | src_pdu | PDU for token to match |
[in] | remote | Remote endpoint to match |
◆ gcoap_forward_proxy_request_process()
Handles proxied requests.
- Parameters
-
[in] | pkt | Packet to parse |
[in] | client | Endpoint of the client |
[in] | local | Local endpoint |
- Returns
- 0 if parsing was successful
-
-ENOTSUP if the forward proxy is not compiled in
-
-ENOENT if
pkt
does not contain a Proxy-Uri option
-
-EINVAL if Proxy-Uri is malformed