Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
766 B

  1. /*++
  2. Copyright (c) 1999, Microsoft Corporation
  3. Module Name:
  4. sample\packet.h
  5. Abstract:
  6. The file contains the header for packet.c
  7. --*/
  8. #ifndef _PACKET_H_
  9. #define _PACKET_H_
  10. //
  11. // struct: PACKET
  12. //
  13. // stores a packet's fields and the buffer
  14. //
  15. typedef struct _PACKET
  16. {
  17. IPADDRESS ipSource;
  18. WSABUF wsaBuffer;
  19. BYTE rgbyBuffer[MAX_PACKET_LENGTH];
  20. OVERLAPPED oOverlapped;
  21. } PACKET, *PPACKET;
  22. DWORD
  23. PacketCreate (
  24. OUT PPACKET *ppPacket);
  25. DWORD
  26. PacketDestroy (
  27. IN PPACKET pPacket);
  28. #ifdef DEBUG
  29. DWORD
  30. PacketDisplay (
  31. IN PPACKET pPacket);
  32. #else
  33. #define PacketDisplay(pPacket)
  34. #endif // DEBUG
  35. #endif // _PACKET_H_