MCPcopy Create free account
hub / github.com/acl-dev/acl / on_message

Method on_message

lib_acl_cpp/src/ipc/rpc.cpp:222–237  ·  view source on GitHub ↗

* @override * ������ӿڣ����յ���Ϣʱ�Ļص����� * @param nMsg {int} �û����ӵ��Զ�����Ϣֵ * @param data {void*} ��Ϣ���� * @param dlen {int} ��Ϣ���ݵij��� */

Source from the content-addressed store, hash-verified

220 * @param dlen {int} ��Ϣ���ݵij���
221 */
222 void on_message(int nMsg, void* data, int dlen)
223 {
224 if (!(data && dlen == sizeof(RPC_DAT))) {
225 abort();
226 }
227 RPC_DAT* dat = (RPC_DAT*) data;
228 if (dat->req == NULL) {
229 abort();
230 }
231
232 if (nMsg == RPC_MSG) {
233 dat->req->rpc_onover();
234 } else if (nMsg == RPC_SIG) {
235 dat->req->rpc_wakeup(dat->ctx);
236 }
237 }
238
239 // @override
240 // ������ӿ�

Callers

nothing calls this directly

Calls 2

rpc_onoverMethod · 0.45
rpc_wakeupMethod · 0.45

Tested by

no test coverage detected