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

📄 spyfun.h

📁 Linux 上的socket嗅探器
💻 H
字号:
/*
 *
 * Copyright (C) 2003 Xiangbin Lee <honeycombs@sina.com> <honeycombs@263.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation.
 */

#ifndef _SPY_FUN_H_
#define _SPY_FUN_H_

#include "ache.h"
#include "datetime.h"
#include "protocal.h"
#include "netspy.h"
#include "packet.h"

/* Globle Veriable for Communication processor */

#define SPY_MAXLIST     255

typedef struct _SPYList {
    unsigned long ID;
    DT_DATE_TIME recvtm;
    unsigned short dlen;
    unsigned char data[1];
}SPYLIST;
             
void ExportTree_RecvInfo(ACHETREE *lptree,SPYLIST *lplist);


/* public using*/  

enum
{                       
   SPY_CLOSE    = 0x0000,
#define  SPY_CLOSE SPY_CLOSE
   SPY_OPEN     = 0x0100,
#define  SPY_OPEN SPY_OPEN
   SPY_CONTINUE = 0x0101,
#define  SPY_CONTINUE SPY_CONTINUE
   SPY_PAUSE    = 0x0102
#define  SPY_PAUSE SPY_PAUSE
};

int SpySetState(unsigned short state);

void SpySetFunction(
    int (*OnGetPacket)(SPYLIST *),
    int (*OnDelPacket)(SPYLIST *),
    void (*OnDebugMessage)( char *pszMsg, ... )
    );


#endif

⌨️ 快捷键说明

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