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.

62 lines
1.9 KiB

  1. /* File: C:\WACKER\xfer\krm.h (Created: 28-Jan-1994)
  2. * created from HAWIN source file
  3. * krm.h -- Exported definitions for KERMIT file transfer protocol routines.
  4. *
  5. * Copyright 1989,1994 by Hilgraeve Inc. -- Monroe, MI
  6. * All rights reserved
  7. *
  8. * $Revision: 1 $
  9. * $Date: 10/05/98 1:16p $
  10. */
  11. /* display rows for receiving */
  12. #define KR_DR_RCV_FILE 1
  13. #define KR_DR_VIR_SCAN 1
  14. #define KR_DR_STORING 2
  15. #define KR_DR_COMPRESS 3
  16. #define KR_DR_FILE_SIZE 3
  17. #define KR_DR_PACKET 4
  18. #define KR_DR_RETRIES 4
  19. #define KR_DR_TOTAL_RET 4
  20. #define KR_DR_FILES_RCVD 4
  21. #define KR_DR_LAST_ERR 5
  22. #define KR_DR_AMT_RCVD 5
  23. #define KR_DR_VUF 8
  24. #define KR_DR_BOTM_LINE 11
  25. /* krm_snd display row values */
  26. #define KS_DR_SND_FILE 1
  27. #define KS_DR_COMPRESS 2
  28. #define KS_DR_FILE_SIZE 2
  29. #define KS_DR_PACKET 3
  30. #define KS_DR_RETRIES 3
  31. #define KS_DR_TOTAL_RET 3
  32. #define KS_DR_FILES_SENT 3
  33. #define KS_DR_LAST_ERR 4
  34. #define KS_DR_AMT_SENT 4
  35. #define KS_DR_VUF 7
  36. #define KS_DR_VUT 11
  37. #define KS_DR_BOTM_LINE 14
  38. /* user settable options */
  39. // extern int k_useattr; /* send 'normalized' file names ? */
  40. // extern int k_maxl; /* maximum packet length we'll take */
  41. // extern int k_timeout; /* time they should wait for us */
  42. // extern uchar k_chkt; /* check type we want to use */
  43. // extern int k_retries; /* no. of retries */
  44. // extern uchar k_markchar; /* first char of each packet */
  45. // extern uchar k_eol; /* end of line character for packets */
  46. // extern int k_npad; /* no. of pad chars. to send us */
  47. // extern uchar k_padc; /* pad char. we want */
  48. extern int krm_rcv(HSESSION hS, int attended, int single_file);
  49. extern int krm_snd(HSESSION hS, int attended, int nfiles, long nbytes);
  50. /* from KCALC.ASM */
  51. extern unsigned kcalc_crc(unsigned crc, unsigned char *data, int cnt);
  52. /********************* end of krm.h *************************/