📄 sipb_ipaddr.h
字号:
//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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -