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

📄 sipbct_pdu.h

📁 sip torture test tools
💻 H
字号:
//sipbct_pdu.h//Copyright (C) 2003 Metalink LTD//Author: Rodionov Sergey (seger@metalinkltd.com)//This program is distributed under terms of GPL (see LICENSE)//class for cert-test PDUs#ifndef __SEGER__MLTD_SIPBCT_PDU_H__#define __SEGER__MLTD_SIPBCT_PDU_H__#include <string>#include <map>using namespace std;class sipbct_pdu{ public:   bool read(string file);   string get_invite(map<string,string>& to_change);   string get_teardown(map<string,string>&to_change,string method);            //in Content-Length computing after change private:   string invite;   string teardown; private:   bool read_int_prob(istream& in,int &i);      //read <integer><' '>                                                 //integer > 0   bool read_str(istream& in,string&str,int size);   bool find_next(string & in,int pos_begin,int& pos_rez, int&size,string&name);     //find next constructin <*(alphanum / "-")>   void make_change(string &,map<string,string>&to_change);   void make_cl_change(string&); //calculate content-Length   };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -