//------------------------------------------------------------------------------------- void ServerApp::lookApp(Network::Channel* pChannel) { if(pChannel->isExternal()) return; DEBUG_MSG(fmt::format("ServerApp::lookApp: {}\n", pChannel->c_str())); Network::Bundle* pBundle = Network::Bundle::ObjPool().createObject(); (*pBundle) << g_componentType; (*pBundle) << componentID_; ShutdownHandler::SHUTDOWN_STATE state = shuttingdown(); int8 istate = int8(state); (*pBundle) << istate; pChannel->send(pBundle); }
//------------------------------------------------------------------------------------- void ServerApp::lookApp(Mercury::Channel* pChannel) { if(pChannel->isExternal()) return; DEBUG_MSG(boost::format("ServerApp::lookApp: %1%\n") % pChannel->c_str()); Mercury::Bundle* pBundle = Mercury::Bundle::ObjPool().createObject(); (*pBundle) << g_componentType; (*pBundle) << componentID_; ShutdownHandler::SHUTDOWN_STATE state = shuttingdown(); int8 istate = int8(state); (*pBundle) << istate; (*pBundle).send(getNetworkInterface(), pChannel); Mercury::Bundle::ObjPool().reclaimObject(pBundle); }