home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Resources / Utilities / Partition Logic 0.68 / partlogic-0.68.iso / system / headers / sys / telnet.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-10  |  3.3 KB  |  69 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2007 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  telnet.h
  20. //
  21.  
  22. // This file contains definitions and structures for using the telnet protocol
  23. // in Visopsys.
  24.  
  25. #if !defined(_TELNET_H)
  26.  
  27. // Telnet commands
  28. #define TELNET_COMMAND_SE     240  // End of subnegotiation parameters.
  29. #define TELNET_COMMAND_NOP    241  // No operation
  30. #define TELNET_COMMAND_DM     242  // Data mark.
  31. #define TELNET_COMMAND_BRK    243  // Break.
  32. #define TELNET_COMMAND_IP     244  // Suspend, interrupt or abort the process
  33. #define TELNET_COMMAND_AO     245  // Abort output.
  34. #define TELNET_COMMAND_AYT    246  // Are you there.
  35. #define TELNET_COMMAND_EC     247  // Erase character.
  36. #define TELNET_COMMAND_EL     248  // Erase line.
  37. #define TELNET_COMMAND_GA     249  // Go ahead.
  38. #define TELNET_COMMAND_GSB    250  // Subnegotiation of the indicated option
  39. #define TELNET_COMMAND_WILL   251  // Indicates the desire to begin performing,
  40.                                    // or confirmation that you are now
  41.                                    // performing, the indicated option.
  42. #define TELNET_COMMAND_WONT   252  // Indicates the refusal to perform, or
  43.                                    // continue performing, the indicated option
  44. #define TELNET_COMMAND_DO     253  // Indicates the request that the other
  45.                                    // party perform, or confirmation that you
  46.                                    // are expecting the other party to perform,
  47.                                    // the indicated option.
  48. #define TELNET_COMMAND_DONT   254  // Indicates the demand that the other party
  49.                                    // stop performing, or confirmation that you
  50.                                    // are no longer expecting the other party
  51.                                    // to perform, the indicated option.
  52. #define TELNET_COMMAND_IAC    255  // Interpret as command
  53.  
  54. // Telnet option codes
  55. #define TELNET_OPTION_ECHO    1    // echo: RFC 857
  56. #define TELNET_OPTION_SUPGA   3       // suppress go ahead: RFC 858
  57. #define TELNET_OPTION_STATUS  5    // status: RFC 859
  58. #define TELNET_OPTION_TMARK   6    // timing mark: RFC 860
  59. #define TELNET_OPTION_TTYPE   24   // terminal type: RFC 1091
  60. #define TELNET_OPTION_WINSZ   31   // window size: RFC 1073
  61. #define TELNET_OPTION_TSPEED  32   // terminal speed: RFC 1079
  62. #define TELNET_OPTION_REMFC   33   // remote flow control: RFC 1372
  63. #define TELNET_OPTION_LMODE   34   // linemode: RFC 1184
  64. #define TELNET_OPTION_ENVAR   36   // environment variables: RFC 1408
  65. #define TELNET_OPTION_ENVOPT  39   // environment variables: RFC 1572
  66.  
  67. #define _TELNET_H
  68. #endif
  69.