📄 nameipana.h
字号:
#ifndef NAMEIPANA_H#define NAMEIPANA_H#include <stdlib.h>#include <string>#include <stdio.h>#include <sys/types.h>#include <sys/socket.h>#include <netdb.h>#include "Segment.h"#include "Interface.h"using namespace std;class NameIpAna { public : NameIpAna(); //for resolving hostname in address ipv4 or ipv6 string resolveip(string); string resolveip6(string); //for resolving addresse ipv4 or ipv6 into hostname string resolvehost(string); string resolvehost6(string); //for resolving interface hostname into address ipv4 or ipv6 string resolveip(Interface); string resolveip6(Interface); //for resolving interface address ipv4 or ipv6 into hostname string resolvehost(Interface); string resolvehost6(Interface); private : string getIp(string,int); string getHost(string);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -