NDSessionMgr::NDSessionMgr(NDInstanceBase *inst) { if(inst){ NDListener *plis = inst->GetDeftListener() ; if(plis) { nd_handle hl = plis->GetHandle() ; if(hl) { SetMgr(nd_listensrv_get_cmmamager(hl)) ; } } } }
int ProxyInst::InitProxy() { if (-1==CreateUpdate()) return -1; NDListener *pLis = GetDeftListener() ; nd_assert(pLis) ; nd_handle h_listen = pLis->GetHandle() ; nd_hook_data(h_listen, listen_data_handle); read_remote_proxy(NDInstanceSrv::config_file, &g_remote_proxy ) ; return 0; }