nameipana.h

来自「ipv6 隧道探测工具。是linux下使用的。 用于探测两点间是否存在隧道」· C头文件 代码 · 共 39 行

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