Source code of Windows XP (NT5)
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.

68 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. ftpmsg.h
  5. Abstract:
  6. This module contains declarations related to the FTP transparent
  7. proxy's message-processing.
  8. Author:
  9. Qiang Wang (qiangw) 10-Apr-2000
  10. Revision History:
  11. --*/
  12. #ifndef _NATHLP_FTPMSG_H_
  13. #define _NATHLP_FTPMSG_H_
  14. //
  15. // Reserved port release delay
  16. //
  17. #define FTP_PORT_RELEASE_DELAY 240000
  18. //
  19. // Flags used in 'UserFlags' field of message-buffers
  20. //
  21. #define FTP_BUFFER_FLAG_CONTINUATION 0x00000001
  22. #define FTP_BUFFER_FLAG_FROM_ACTUAL_CLIENT 0x00000004
  23. #define FTP_BUFFER_FLAG_FROM_ACTUAL_HOST 0x00000008
  24. typedef struct _TIMER_CONTEXT {
  25. HANDLE TimerQueueHandle;
  26. HANDLE TimerHandle;
  27. USHORT ReservedPort;
  28. } TIMER_CONTEXT, *PTIMER_CONTEXT;
  29. //
  30. // FUNCTION DECLARATIONS
  31. //
  32. VOID
  33. FtpProcessMessage(
  34. PFTP_INTERFACE Interfacep,
  35. PFTP_ENDPOINT Endpointp,
  36. PNH_BUFFER Bufferp
  37. );
  38. CHAR *
  39. FtpIsFullMessage(
  40. CHAR *Bufferp,
  41. ULONG Length
  42. );
  43. VOID CALLBACK
  44. FtpDelayedPortRelease(
  45. PVOID Parameter,
  46. BOOLEAN TimerOrWaitFired
  47. );
  48. #endif // _NATHLP_FTPMSG_H_