Loading...
Searching...
No Matches
coap_ws.h
Go to the documentation of this file.
/*
* coap_ws.h -- WebSockets Transport Layer Support for libcoap
*
* Copyright (C) 2023 Olaf Bergmann <bergmann@tzi.org>
* Copyright (C) 2023 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.
*/
#ifndef COAP_WS_H_
#define COAP_WS_H_
int coap_ws_is_supported(void);
int coap_wss_is_supported(void);
int coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host);
#endif /* COAP_WS_H */
coap_ws_is_supported
int coap_ws_is_supported(void)
Check whether WebSockets is available.
Definition coap_ws.c:935
coap_ws_set_host_request
int coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host)
Set the host for the HTTP Host: Header in the WebSockets Request.
Definition coap_ws.c:945
coap_wss_is_supported
int coap_wss_is_supported(void)
Check whether Secure WebSockets is available.
Definition coap_ws.c:940
coap_session_t
Abstraction of virtual session that can be attached to coap_context_t (client) or coap_endpoint_t (se...
Definition coap_session_internal.h:68
coap_str_const_t
CoAP string data definition with const data.
Definition coap_str.h:46