sipb_ipaddr.h

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

H
28
字号
//sipb_ipaddr.h//Copyright (C) 2003 Metalink LTD//Author: Rodionov Sergey (seger@metalinkltd.com)//This program is distributed under terms of GPL (see LICENSE)//This class contain ip-address and string#ifndef __MLTD__SIPB_IPADDR_H__#define __MLTD__SIPB_IPADDR_H__#include <sys/socket.h>#include <netinet/in.h>#include <string>using namespace std;class sipb_ipaddr{ public:   sipb_ipaddr();   bool try_set(string strip);  //use gethostbyname   in_addr ip()   {return _ip;};   string strip(){return _strip;}; private:   in_addr _ip;   string _strip;};#endif

⌨️ 快捷键说明

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