www.pudn.com > SnifferPro.rar > UDPGram.h


// UDPGram.h: interface for the UDPGram class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_UDPGRAM_H__7A76C7DE_9D99_4D9E_90DC_7B11C9CEC4F0__INCLUDED_) 
#define AFX_UDPGRAM_H__7A76C7DE_9D99_4D9E_90DC_7B11C9CEC4F0__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class UDPGram   
{ 
public: 
	UDPGram(); 
	UDPGram(const unsigned char *buf,const int buflen); 
	virtual ~UDPGram(); 
	 
	unsigned int srcport;//源端口 
	unsigned int destport;//目的端口 
	int totallen;//总长 
	int checksum;//校验和 
	unsigned int datalen; 
	char *data; 
}; 
 
#endif // !defined(AFX_UDPGRAM_H__7A76C7DE_9D99_4D9E_90DC_7B11C9CEC4F0__INCLUDED_)