Lines Matching refs:WebSocket

20 | [net_websocket.h](net__websocket_8h.md) | Defines C APIs for the WebSocket client module. **File …
21 …_websocket__type_8h.md) | Defines data structures for the C APIs of the WebSocket client module. *…
31 …cket___close_result.md) | Parameters for the connection closure received by the WebSocket client. |
32 …e_option.md) | Parameters for the proactive connection closure initiated by the WebSocket client. |
33 …socket___error_result.md) | Parameters for the connection error received by the WebSocket client. |
34 …ocket___open_result.md) | Parameters for the connection success received by the WebSocket client. |
35 | [WebSocket_Header](_web_socket___header.md) | Header linked list added to the WebSocket client. |
36 …ocket___request_options.md) | Parameters for the connection between the WebSocket client and serve…
37 | [WebSocket](_web_socket.md) | WebSocket client structure. |
44 …truct [WebSocket](_web_socket.md) \*client, [WebSocket_OpenResult](_web_socket___open_result.md) o…
45 …sagecallback)) (struct [WebSocket](_web_socket.md) \*client, char \*data, uint32_t length) | Callb…
46 …uct [WebSocket](_web_socket.md) \*client, [WebSocket_ErrorResult](_web_socket___error_result.md) e…
47 …uct [WebSocket](_web_socket.md) \*client, [WebSocket_CloseResult](_web_socket___close_result.md) c…
54 … (E_BASE + 17), <br>WEBSOCKET_NO_CONNECTION_CONTEXT = (E_BASE + 18)<br>} | WebSocket error codes. |
63 | [OH_WebSocketClient_AddHeader](#oh_websocketclient_addheader) (struct [WebSocket](_web_socket.md)…
64 | [OH_WebSocketClient_Connect](#oh_websocketclient_connect) (struct [WebSocket](_web_socket.md) \*c…
65 | [OH_WebSocketClient_Send](#oh_websocketclient_send) (struct [WebSocket](_web_socket.md) \*client,…
66 …e) (struct [WebSocket](_web_socket.md) \*client, struct [WebSocket_CloseOption](_web_socket___clos…
67 …socketclient_destroy) (struct [WebSocket](_web_socket.md) \*client) | Releases the context and res…
85 | [WebSocket_CloseResult::reason](#reason-13) | Connection close reason for the WebSocket client. |
87 | [WebSocket_CloseOption::reason](#reason-23) | Connection close reason for the WebSocket client. |
90 | [WebSocket_OpenResult::code](#code-33) | Connection success code for the WebSocket client. |
91 | [WebSocket_OpenResult::reason](#reason-33) | Connection reason for the WebSocket client. |
96 …llback](#websocket_onopencallback) [WebSocket::onOpen](#onopen) | Pointer to the callback invoked …
97 …](#websocket_onmessagecallback) [WebSocket::onMessage](#onmessage) | Pointer to the callback invok…
98 …back](#websocket_onerrorcallback) [WebSocket::onError](#onerror) | Pointer to the callback invoked…
99 …back](#websocket_onclosecallback) [WebSocket::onClose](#onclose) | Pointer to the callback invoked…
100 | [WebSocket_RequestOptions](_web_socket___request_options.md) [WebSocket::requestOptions](#request…
109 typedef void(* WebSocket_OnCloseCallback) (struct WebSocket *client, WebSocket_CloseResult closeRes…
112 Callback invoked when the WebSocket client receives a **close** message.
120 | client | WebSocket client. |
121 | closeResult | Content of the close message received by the WebSocket client. |
127 typedef void(* WebSocket_OnErrorCallback) (struct WebSocket *client, WebSocket_ErrorResult errorRes…
130 Callback invoked when the WebSocket client receives an error message.
138 | client | WebSocket client. |
139 | errorResult | Content of the error message received by the WebSocket client. |
145 typedef void(* WebSocket_OnMessageCallback) (struct WebSocket *client, char *data, uint32_t length)
148 Callback invoked when the WebSocket client receives data.
156 | client | WebSocket client. |
157 | data | Data received by the WebSocket client. |
158 | length | Length of the data received by the WebSocket client. |
164 typedef void(* WebSocket_OnOpenCallback) (struct WebSocket *client, WebSocket_OpenResult openResult)
167 Callback invoked when the WebSocket client receives an **open** message.
175 | client | WebSocket client. |
176 | openResult | Content of the connection setup message received by the WebSocket client. |
208 WebSocket error codes.
216 | WEBSOCKET_CLIENT_NULL | WebSocket is null.|
217 | WEBSOCKET_CLIENT_NOT_CREATED | WebSocket is not created.|
218 | WEBSOCKET_CONNECTION_ERROR | An error occurs while connecting the WebSocket client.|
219 | WEBSOCKET_CONNECTION_PARSE_URL_ERROR | An error occurs while parsing WebSocket connection parame…
220 …N_NO_MEMORY | The memory is insufficient for creating a context during WebSocket connection setup…
221 | WEBSOCKET_CONNECTION_CLOSED_BY_PEER | The WebSocket connection is closed during initialization.|
222 | WEBSOCKET_DESTROYED | The WebSocket connection is destroyed.|
223 | WEBSOCKET_PROTOCOL_ERROR | An incorrect protocol is used for WebSocket connection.|
224 | WEBSOCKET_SEND_NO_MEMORY | The memory for the WebSocket client to send data is insufficient.|
225 | WEBSOCKET_SEND_DATA_NULL | The data sent by the WebSocket client is null.|
226 | WEBSOCKET_DATA_LENGTH_EXCEEDED | The length of the data sent by the WebSocket client exceeds the…
227 | WEBSOCKET_QUEUE_LENGTH_EXCEEDED | The queue length of the data sent by the WebSocket client exce…
228 | WEBSOCKET_NO_CLIENT_CONTEXT | The context of the WebSocket client is null.|
229 | WEBSOCKET_NO_HEADER_CONTEXT | The header of the WebSocket client is abnormal.|
230 | WEBSOCKET_HEADER_EXCEEDED | The header of the WebSocket client exceeds the limit.|
231 | WEBSOCKET_NO_CONNECTION | The WebSocket client is not connected.|
232 | WEBSOCKET_NO_CONNECTION_CONTEXT | The WebSocket client does not have the connection context.|
407 int OH_WebSocketClient_AddHeader (struct WebSocket * client, struct WebSocket_Header header )
420 | client | Pointer to the WebSocket client. |
432 int OH_WebSocketClient_Close (struct WebSocket * client, struct WebSocket_CloseOption options )
435 Lets the WebSocket client proactively close the connection.
445 | client | WebSocket client. |
446 | url | IP address for the WebSocket client to connect to the server. |
461 int OH_WebSocketClient_Connect (struct WebSocket * client, const char * url, struct WebSocket_Reque…
464 Connects the WebSocket client to the server.
474 | client | Pointer to the WebSocket client. |
475 | url | IP address for the WebSocket client to connect to the server. |
490 struct WebSocket* OH_WebSocketClient_Constructor (WebSocket_OnOpenCallback onOpen, WebSocket_OnMess…
503 | onMessage | Callback invoked when the WebSocket client receives a message. |
504 | onClose | Callback invoked when the WebSocket client receives a **close** message. |
505 | onError | Callback invoked when the WebSocket client receives an **error** message. |
506 | onOpen | Callback invoked when the WebSocket client receives an **open** message. |
510 Returns the pointer to the WebSocket client if the operation is successful; returns NULL otherwise.
516 int OH_WebSocketClient_Destroy (struct WebSocket * client)
519 Releases the context and resources of the WebSocket connection.
529 | client | WebSocket client. |
543 int OH_WebSocketClient_Send (struct WebSocket * client, char * data, size_t length )
546 Sends data from the WebSocket client to the server.
556 | client | WebSocket client. |
557 | data | Data sent by the WebSocket client. |
558 | length | Length of the data sent by the WebSocket client. |
683 Connection success code for the WebSocket client.
744 WebSocket_OnCloseCallback WebSocket::onClose
749 Pointer to the callback invoked when the WebSocket client receives a close message.
755 WebSocket_OnErrorCallback WebSocket::onError
760 Pointer to the callback invoked when the WebSocket client receives an error message.
766 WebSocket_OnMessageCallback WebSocket::onMessage
771 Pointer to the callback invoked when the WebSocket client receives a message.
777 WebSocket_OnOpenCallback WebSocket::onOpen
782 Pointer to the callback invoked when the WebSocket client receives a connection message.
793 Connection close reason for the WebSocket client.
804 Connection close reason for the WebSocket client.
815 Connection reason for the WebSocket client.
821 WebSocket_RequestOptions WebSocket::requestOptions