Lines Matching refs:client
135 void requestHubInfo(SocketClient &client) { in requestHubInfo() argument
140 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in requestHubInfo()
145 void requestNanoappList(SocketClient &client) { in requestNanoappList() argument
150 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in requestNanoappList()
155 void sendMessageToNanoapp(SocketClient &client) { in sendMessageToNanoapp() argument
164 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendMessageToNanoapp()
169 void sendLoadNanoappRequest(SocketClient &client, const char *filename, in sendLoadNanoappRequest() argument
198 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendLoadNanoappRequest()
203 void sendUnloadNanoappRequest(SocketClient &client, uint64_t appId) { in sendUnloadNanoappRequest() argument
211 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendUnloadNanoappRequest()
241 SocketClient client; in main() local
244 if (!client.connect("chre", callbacks)) { in main()
250 requestHubInfo(client); in main()
251 requestNanoappList(client); in main()
252 sendMessageToNanoapp(client); in main()
253 sendLoadNanoappRequest(client, "/data/activity.so", in main()
256 sendUnloadNanoappRequest(client, 0x476f6f676c00100b /* appId */); in main()
277 sendLoadNanoappRequest(client, path.c_str(), id, appVersion, apiVersion); in main()
287 sendUnloadNanoappRequest(client, id); in main()