windows-nt/Source/XPSP1/NT/net/rras/ip/sample/packet.h

50 lines
717 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (c) 1999, Microsoft Corporation
Module Name:
sample\packet.h
Abstract:
The file contains the header for packet.c
--*/
#ifndef _PACKET_H_
#define _PACKET_H_
//
// struct: PACKET
//
// stores a packet's fields and the buffer
//
typedef struct _PACKET
{
IPADDRESS ipSource;
WSABUF wsaBuffer;
BYTE rgbyBuffer[MAX_PACKET_LENGTH];
OVERLAPPED oOverlapped;
} PACKET, *PPACKET;
DWORD
PacketCreate (
OUT PPACKET *ppPacket);
DWORD
PacketDestroy (
IN PPACKET pPacket);
#ifdef DEBUG
DWORD
PacketDisplay (
IN PPACKET pPacket);
#else
#define PacketDisplay(pPacket)
#endif // DEBUG
#endif // _PACKET_H_