basic.h

来自「linux 上http email 协议分析程序 主要能够处理大数据量的主干网」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef _CVAL_FILE_H
#define _CVAL_FILE_H

#include "Stru.h"
//解读字段内容的方法
class Cval
{
public:
	//this is end boudary flag;
	static bool isEndBoudary(char *szline);
	static int getEncodingType(char *pval);
	static int getContentType(char *pval);
	static bool getFileName(char *pval,char *pout);
	static bool getContentTypeValue(char *pval,char *pout);
	static bool getNextAtom(char *&pval,char *sz_buf);

	static bool isSpecails(char c);
	static bool isDelimiter(char c);

	

};

int tfrMonth(char *);
void reverseHead(struct ST_TCP_STREAM *phead);
bool isspmon(struct ST_TCP_STREAM *phead);
void logHead(struct ST_TCP_STREAM *phead);
void traceFile(char *, int,char *);
void traceIpFile(char *, int,char *);

void saveFile(char *, int,char *);
   
void saveIpFile(char *, int,char *);
//#ifdef FROMFILE

int readFile(char *);

//#endif


#endif

⌨️ 快捷键说明

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