Zephyr Project API 4.0.99
A Scalable Open Source RTOS
|
#include <zephyr/net/socket.h>
#include <zephyr/net/http/server.h>
#include <zephyr/net/http/service.h>
#include <zephyr/shell/shell.h>
Go to the source code of this file.
Data Structures | |
struct | shell_websocket_line_buf |
Line buffer structure. More... | |
struct | shell_websocket |
WEBSOCKET-based shell transport. More... | |
Macros | |
#define | SHELL_WEBSOCKET_SERVICE_COUNT CONFIG_SHELL_WEBSOCKET_BACKEND_COUNT |
#define | GET_WS_NAME(_service) ws_ctx_##_service |
#define | GET_WS_SHELL_NAME(_name) shell_websocket_##_name |
#define | GET_WS_TRANSPORT_NAME(_service) transport_shell_ws_##_service |
#define | GET_WS_DETAIL_NAME(_service) ws_res_detail_##_service |
#define | SHELL_WEBSOCKET_DEFINE(_service) |
#define | SHELL_WS_PORT_NAME(_service) http_service_##_service |
#define | SHELL_WS_BUF_NAME(_service) ws_recv_buffer_##_service |
#define | SHELL_WS_TEMP_RECV_BUF_SIZE 256 |
#define | DEFINE_WEBSOCKET_HTTP_SERVICE(_service) |
#define | DEFINE_WEBSOCKET_SERVICE(_service) |
#define | WEBSOCKET_CONSOLE_DEFINE(_service, _sec_tag_list, _sec_tag_list_size) |
#define | WEBSOCKET_CONSOLE_ENABLE(_service) (void)shell_websocket_enable(&GET_WS_SHELL_NAME(_service)) |
Functions | |
int | shell_websocket_setup (int ws_socket, void *user_data) |
int | shell_websocket_enable (const struct shell *sh) |
Variables | |
const struct shell_transport_api | shell_websocket_transport_api |
#define DEFINE_WEBSOCKET_HTTP_SERVICE | ( | _service | ) |
#define DEFINE_WEBSOCKET_SERVICE | ( | _service | ) |
#define GET_WS_DETAIL_NAME | ( | _service | ) | ws_res_detail_##_service |
#define GET_WS_NAME | ( | _service | ) | ws_ctx_##_service |
#define GET_WS_SHELL_NAME | ( | _name | ) | shell_websocket_##_name |
#define GET_WS_TRANSPORT_NAME | ( | _service | ) | transport_shell_ws_##_service |
#define SHELL_WEBSOCKET_DEFINE | ( | _service | ) |
#define SHELL_WEBSOCKET_SERVICE_COUNT CONFIG_SHELL_WEBSOCKET_BACKEND_COUNT |
#define SHELL_WS_BUF_NAME | ( | _service | ) | ws_recv_buffer_##_service |
#define SHELL_WS_PORT_NAME | ( | _service | ) | http_service_##_service |
#define SHELL_WS_TEMP_RECV_BUF_SIZE 256 |
#define WEBSOCKET_CONSOLE_DEFINE | ( | _service, | |
_sec_tag_list, | |||
_sec_tag_list_size | |||
) |
#define WEBSOCKET_CONSOLE_ENABLE | ( | _service | ) | (void)shell_websocket_enable(&GET_WS_SHELL_NAME(_service)) |
|
extern |
|
extern |
|
extern |