segment.h

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

H
55
字号
#ifndef SEGMENT_H#define SEGMENT_H#include <stdlib.h>#include <string>#include "Interface.h"using namespace std;class Segment {  public :           Segment();           //set methods           void setMtu(int);           void setMidRt(long);           void setIsTunnel(bool);           void setTunnelType(string);           void increaseConf(int); //originally set to 15           //data relative to interfaces.., when adding data, just select the data you are adding to true           //the AND bool to bool gives the right output           void addIpv4in(string) ;           void addIpv6in(string) ;           void addHostnamein(string);           void addIpv4out(string) ;           void addIpv6out(string) ;           void addHostnameout(string) ;           //get methods           int getMtu();           bool getIsTunnel();           long getMidRt();           int getConfidence();           string getIpv4in();           string getIpv6in();           string getHostnamein();           string getIpv4out();           string getIpv6out();           string getHostnameout();  private :           Interface if_in;           Interface if_out;           int mtu;           long midRt;           bool isTunnel;           string tunnelType;           int confidence;           void init();};#endif

⌨️ 快捷键说明

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