#include #include #include using namespace baosight; int gb_eventno = 1000; string gb_name ="zudp"; string gb_event="znode"; zudp::zudp() { } int zudp::start() { LOG log("zudp::start"); log.Info()<<"start baosight/zudp"<dbLogin() != NULL) { log.Error()<<"can't connect to db"< 4) { string id = name().substr(4,name().length() - 4); gb_eventno = 2000+atoi(id.c_str()); gb_event+=id; } log.Info()<<"node eventno:"<add("baosight/"+name() , m_zudpServer); } catch(::Ice::LocalException& e) { log.Error()<<"Can not add baosight/znode, error:"<dbLogout(); delete mp_conMag; mp_conMag = NULL; } //PACE_SERVER_INSTALL(zudp) //应用程序主入口,传入参数为定义的类名 PACE_PLATFORM_SERVER_INSTALL(zudp, APPVERSION);