home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / MISC / mtp.shar / mtp.h < prev    next >
Text File  |  2009-11-06  |  762b  |  38 lines

  1. /* mtp.h, Version 1.3, Created 3/7/91 */
  2. /* Dr Alan M. McIvor, BP Sunbury Research Centre */
  3. /* Defines for MTP programmes */
  4.  
  5. #define MTP_PORT 5013
  6.  
  7. #define FOREVER 1
  8. #define CONNECTION_HANDLER "mtpdc"
  9. #define VALIDATION_HANDLER "mtpvalid"
  10.  
  11. /* COMMS codes */
  12. #define ACKNOWLEDGE    'a'
  13. #define QUIT           'q'
  14. #define ERROR_CONTROL  'e'
  15. #define PUT_MODULE     'p'
  16. #define GET_MODULE     'g'
  17. #define UPUT_MODULE    'u'
  18.  
  19. #define MTP_PROMPT "mtp> "
  20.  
  21. /* command indices */
  22. #define UNKNOWN 0
  23. #define BYE     1
  24. #define PUTMOD  2
  25. #define GETMOD  3
  26. #define CHDIR   4
  27. #define REPPWD  5
  28. #define REPLS   6
  29. #define UPUTMOD 7
  30.  
  31. /* ERROR codes */
  32. #define E_FATAL    0
  33. #define E_UNLOAD   1
  34. #define E_MEMALLOC 2
  35. #define E_FORK     3
  36. #define E_VALIDATE 4
  37. #define E_NOMODULE 5
  38.