Lines Matching full:message
24 std::string Message; in encodeError() local
28 Message = L.Message; in encodeError()
32 Message = toString(std::move(Unhandled)); in encodeError()
35 {"message", std::move(Message)}, in encodeError()
42 std::string(O.getString("message").value_or("Unspecified error")); in decodeError()
94 // Dispatches incoming message to Handler onNotify/onCall/onReply.
95 bool handleMessage(json::Value Message, MessageHandler &Handler);
96 void sendMessage(json::Value Message) { in sendMessage() argument
97 xpc_object_t response = jsonToXpc(Message); in sendMessage()
107 bool XPCTransport::handleMessage(json::Value Message, MessageHandler &Handler) { in handleMessage() argument
108 // Message must be an object with "jsonrpc":"2.0". in handleMessage()
109 auto *Object = Message.getAsObject(); in handleMessage()
112 elog("Not a JSON-RPC 2.0 message: {0:2}", Message); in handleMessage()
122 elog("No method and no response ID: {0:2}", Message); in handleMessage()
157 xpc_connection_set_event_handler(clientConnection, ^(xpc_object_t message) { in connection_handler()
158 if (message == XPC_ERROR_CONNECTION_INVALID) { in connection_handler()
160 log("Received XPC_ERROR_CONNECTION_INVALID message - returning from the " in connection_handler()
165 if (xpc_get_type(message) != XPC_TYPE_DICTIONARY) { in connection_handler()
166 log("Received XPC message of unknown type - returning from the " in connection_handler()
171 const json::Value Doc = xpcToJson(message); in connection_handler()
173 log("XPC message was converted to Null JSON message - returning from the " in connection_handler()
182 xpc_connection_cancel(xpc_dictionary_get_remote_connection(message)); in connection_handler()