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

📄 nameipana.h

📁 ipv6 隧道探测工具。是linux下使用的。 用于探测两点间是否存在隧道
💻 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 + -