NETWORK_INTERFACE_DECLARE_BEGIN(MessagelogInterface) // 某app注册自己的接口地址到本app MESSAGELOG_MESSAGE_DECLARE_ARGS10(onRegisterNewApp, MERCURY_VARIABLE_MESSAGE, int32, uid, std::string, username, int8, componentType, uint64, componentID, int8, globalorderID, int8, grouporderID, uint32, intaddr, uint16, intport, uint32, extaddr, uint16, extport) // 某app主动请求look。 MESSAGELOG_MESSAGE_DECLARE_ARGS0(lookApp, MERCURY_FIXED_MESSAGE) // 某个app请求查看该app负载状态。 MESSAGELOG_MESSAGE_DECLARE_ARGS0(queryLoad, MERCURY_FIXED_MESSAGE) // 某个app向本app告知处于活动状态。 MESSAGELOG_MESSAGE_DECLARE_ARGS2(onAppActiveTick, MERCURY_FIXED_MESSAGE, COMPONENT_TYPE, componentType, COMPONENT_ID, componentID) // 远程写日志 MESSAGELOG_MESSAGE_DECLARE_STREAM(writeLog, MERCURY_VARIABLE_MESSAGE) // 注册log监听者 MESSAGELOG_MESSAGE_DECLARE_STREAM(registerLogWatcher, MERCURY_VARIABLE_MESSAGE)
Messagelog所有消息接口在此定义 */ NETWORK_INTERFACE_DECLARE_BEGIN(MessagelogInterface) // 某app注册自己的接口地址到本app MESSAGELOG_MESSAGE_DECLARE_ARGS8(onRegisterNewApp, MERCURY_VARIABLE_MESSAGE, int32, uid, std::string, username, int8, componentType, uint64, componentID, uint32, intaddr, uint16, intport, uint32, extaddr, uint16, extport) // 某app主动请求look。 MESSAGELOG_MESSAGE_DECLARE_ARGS0(lookApp, MERCURY_FIXED_MESSAGE) // 某个app向本app告知处于活动状态。 MESSAGELOG_MESSAGE_DECLARE_ARGS2(onAppActiveTick, MERCURY_FIXED_MESSAGE, COMPONENT_TYPE, componentType, COMPONENT_ID, componentID) // 远程写日志 MESSAGELOG_MESSAGE_DECLARE_STREAM(writeLog, MERCURY_VARIABLE_MESSAGE) // 注册log监听者 MESSAGELOG_MESSAGE_DECLARE_STREAM(registerLogWatcher, MERCURY_VARIABLE_MESSAGE) // 请求关闭服务器 MESSAGELOG_MESSAGE_DECLARE_STREAM(reqCloseServer, MERCURY_VARIABLE_MESSAGE)