Files
libcoap/include/coap3/coap_ws.h
T
Jon Shallow 92198b00b3 Supported: Break out run-time checks and libcoap build #defines
Group together and document the run-time checks available for checking
the libcoap built-in functionality based on the ./cconfigure and / or
CMakeLists.txt options.

Create include/coap3/coap_defines.h file that contains a list of
COAP_ #defines created from the options defined when running ./configure
or cmake.

Add additional coap_*_is_supported() functions.
2024-08-07 10:23:19 +01:00

38 lines
831 B
C

/*
* coap_ws.h -- WebSockets Transport Layer Support for libcoap
*
* Copyright (C) 2023-2024 Olaf Bergmann <bergmann@tzi.org>
* Copyright (C) 2023-2024 Jon Shallow <supjps-libcoap@jpshallow.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
/**
* @file coap_ws.h
* @brief CoAP WebSockets support
*/
#ifndef COAP_WS_H_
#define COAP_WS_H_
/**
* @ingroup application_api
* @defgroup ws WebSockets Support
* API for interfacing with WebSockets (RFC8323)
* @{
*/
/**
* Set the host for the HTTP Host: Header in the WebSockets Request.
*
* @return @c 1 if successful, else @c 0 if failure of some sort.
*/
int coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host);
/** @} */
#endif /* COAP_WS_H */