Home
last modified time | relevance | path

Searched refs:ws_sock (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/include/zephyr/net/
Dwebsocket.h63 typedef int (*websocket_connect_cb_t)(int ws_sock, struct http_request *req,
153 int websocket_send_msg(int ws_sock, const uint8_t *payload, size_t payload_len,
177 int websocket_recv_msg(int ws_sock, uint8_t *buf, size_t buf_len,
191 int websocket_disconnect(int ws_sock);
216 int websocket_unregister(int ws_sock);
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_ws.c96 int ws_sock; in handle_http1_to_websocket_upgrade() local
100 ret = ws_sock = websocket_register(client->fd, in handle_http1_to_websocket_upgrade()
110 ret = ws_detail->cb(ws_sock, ws_detail->user_data); in handle_http1_to_websocket_upgrade()
113 websocket_unregister(ws_sock); in handle_http1_to_websocket_upgrade()
/Zephyr-latest/doc/connectivity/networking/api/
Dwebsocket.rst46 ws_sock = websocket_connect(sock, &config, timeout, user_data);
55 ret = websocket_send_msg(ws_sock, buf_to_send, buf_len,
59 ret = send(ws_sock, buf_to_send, buf_len, 0);
70 ret = close(ws_sock);
72 ret = websocket_disconnect(ws_sock);
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket.c408 int websocket_disconnect(int ws_sock) in websocket_disconnect() argument
410 return zsock_close(ws_sock); in websocket_disconnect()
652 int websocket_send_msg(int ws_sock, const uint8_t *payload, size_t payload_len, in websocket_send_msg() argument
670 ctx = zvfs_get_fd_obj(ws_sock, NULL, 0); in websocket_send_msg()
937 int websocket_recv_msg(int ws_sock, uint8_t *buf, size_t buf_len, in websocket_recv_msg() argument
957 struct test_data *test_data = zvfs_get_fd_obj(ws_sock, NULL, 0); in websocket_recv_msg()
965 ctx = zvfs_get_fd_obj(ws_sock, NULL, 0); in websocket_recv_msg()
/Zephyr-latest/include/zephyr/net/http/
Dserver.h273 int ws_sock; member