Home
last modified time | relevance | path

Searched refs:websocketClient (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/netstack/interfaces/kits/c/net_websocket/src/
H A Dnet_websocket.cpp78 WebSocketClient *websocketClient = new WebSocketClient(); in OH_WebSocketClient_Constructor() local
88 delete websocketClient; in OH_WebSocketClient_Constructor()
89 websocketClient = nullptr; in OH_WebSocketClient_Constructor()
94 g_clientMap[OH_client] = websocketClient; in OH_WebSocketClient_Constructor()
132 if (websocketClient == NULL) { in OH_WebSocketClient_Send()
136 ret = websocketClient->Send(data, length); in OH_WebSocketClient_Send()
157 if (websocketClient == NULL) { in OH_WebSocketClient_Connect()
176 if (websocketClient == NULL) { in OH_WebSocketClient_Close()
182 ret = websocketClient->Close(closeOption); in OH_WebSocketClient_Close()
203 if (websocketClient == NULL) { in OH_WebSocketClient_Destroy()
[all …]
H A Dnet_websocket_adapter.cpp36 WebSocket *GetNdkClientAdapter(const WebSocketClient *websocketClient) in GetNdkClientAdapter() argument
38 …auto it = std::find_if(g_clientMap.begin(), g_clientMap.end(), [&websocketClient](const auto& pair… in GetNdkClientAdapter()
39 return pair.second == websocketClient; in GetNdkClientAdapter()
/ohos5.0/foundation/communication/netstack/interfaces/kits/c/net_websocket/include/
H A Dnet_websocket_adapter.h26 WebSocket *GetNdkClientAdapter(const WebSocketClient *websocketClient);