parser.h
来自「这个是网络编程」· C头文件 代码 · 共 41 行
H
41 行
//
// Sample: Parse common routines for the SIO_RCVALL sample
//
// Files:
// parser.h - this file
//
// Description:
// This file contains definitions for the parser print routines used
// by the SIO_RCVALL sample.
//
// Compile:
// See rcvall.cpp
//
// Usage
// See rcvall.cpp
//
#ifndef _RCVALL_H_
#define _RCVALL_H_
#include <winsock2.h>
#include <windows.h>
#define MAX_IP_SIZE 65535
#define MIN_IP_HDR_SIZE 20
#define HI_WORD(byte) (((byte) >> 4) & 0x0F)
#define LO_WORD(byte) ((byte) & 0x0F)
extern char *szProto[];
void PrintRawBytes (BYTE *ptr, DWORD len);
int DecodeIGMPHeader(WSABUF *wsabuf, DWORD iphdrlen, DWORD iptotallen);
int DecodeUDPHeader (WSABUF *wsabuf, DWORD iphdrlen);
int DecodeTCPHeader (WSABUF *wsabuf, DWORD iphdrlenz);
int DecodeIPHeader (WSABUF *wasbuf, unsigned int srcaddr,
unsigned short srcport, unsigned int destaddr, unsigned short destport);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?