📄 exchanger.h
字号:
#include "stdio.h"
#include "string.h"
#include "iostream.h"
#ifndef EXCHANGE_H
#define EXCHANGE_H
#define PCAP_MAGIC 0xa1b2c3d4
typedef struct _pcap_hdr
{
int magic; /* magic number */
unsigned short version_major; /* major version number */
unsigned short version_minor; /* minor version number */
int thiszone; /* GMT to local correction */
int sigfigs; /* accuracy of timestamps */
int snaplen; /* max length of captured packets, in octets */
int network; /* data link type */
} pcap_hdr;
class Exchanger
{
public :
Exchanger(){};
int initlize(char *src, char *tag);
int process();
void toEtherealCapFile();
// void initializeCapHeader();
private:
pcap_hdr hdr;
FILE *m_pSourceFile;
FILE *m_pTargetFile;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -