sipbct_pdu.h

来自「sip torture test tools」· C头文件 代码 · 共 35 行

H
35
字号
//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 + =
减小字号Ctrl + -
显示快捷键?