📄 unreg.cxx
字号:
#include "rutil/Logger.hxx"#include "resip/dum/ClientRegistration.hxx"#include "CommandLineParser.hxx"#include "UserAgent.hxx"using namespace resip;#define RESIPROCATE_SUBSYSTEM Subsystem::TESTclass TestUserAgent : public UserAgent{ public: TestUserAgent(int argc, char** argv) : UserAgent(argc, argv) { } void startup() { InfoLog (<< "register for " << mAor); UInt32 e=0; NameAddr target(mAor); mDum.send(mDum.makeRegistration(target, e)); } void onSuccess(ClientRegistrationHandle h, const SipMessage& response) { InfoLog (<< "Removing binding for " << *h); h->removeAll(true); }};intmain(int argc, char** argv){ TestUserAgent tua(argc, argv); tua.startup(); for (int i=0; i<100000; ++i) { tua.process(); usleep(10); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -