⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unreg.cxx

📁 这是国外的resip协议栈
💻 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 + -