Net_NNTP
[ class tree: Net_NNTP ] [ index: Net_NNTP ] [ all elements ]

Source for file Responsecode.php

Documentation is available at Responsecode.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
  3. // +-----------------------------------------------------------------------+
  4. // |                                                                       |
  5. // |                  http://www.heino.gehlsen.dk/software/license         |
  6. // |                                                                       |
  7. // +-----------------------------------------------------------------------+
  8. // |                                                                       |
  9. // | This work (including software, documents, or other related items) is  |
  10. // | being provided by the copyright holders under the following license.  |
  11. // | By obtaining, using and/or copying this work, you (the licensee)      |
  12. // | agree that you have read, understood, and will comply with the        |
  13. // | following terms and conditions:                                       |
  14. // |                                                                       |
  15. // | Permission to use, copy, modify, and distribute this software and     |
  16. // | its documentation, with or without modification, for any purpose and  |
  17. // | without fee or royalty is hereby granted, provided that you include   |
  18. // | the following on ALL copies of the software and documentation or      |
  19. // | portions thereof, including modifications, that you make:             |
  20. // |                                                                       |
  21. // | 1. The full text of this NOTICE in a location viewable to users of    |
  22. // |    the redistributed or derivative work.                              |
  23. // |                                                                       |
  24. // | 2. Any pre-existing intellectual property disclaimers, notices, or    |
  25. // |    terms and conditions. If none exist, a short notice of the         |
  26. // |    following form (hypertext is preferred, text is permitted) should  |
  27. // |    be used within the body of any redistributed or derivative code:   |
  28. // |     http://www.heino.gehlsen.dk/software/license"                     |
  29. // |                                                                       |
  30. // | 3. Notice of any changes or modifications to the files, including     |
  31. // |    the date changes were made. (We recommend you provide URIs to      |
  32. // |    the location from which the code is derived.)                      |
  33. // |                                                                       |
  34. // | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT    |
  35. // | HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,    |
  36. // | INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR        |
  37. // | FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE    |
  38. // | OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS,           |
  39. // | COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.                               |
  40. // |                                                                       |
  41. // | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,        |
  42. // | SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE        |
  43. // | SOFTWARE OR DOCUMENTATION.                                            |
  44. // |                                                                       |
  45. // | The name and trademarks of copyright holders may NOT be used in       |
  46. // | advertising or publicity pertaining to the software without specific, |
  47. // | written prior permission. Title to copyright in this software and any |
  48. // | associated documentation will at all times remain with copyright      |
  49. // | holders.                                                              |
  50. // |                                                                       |
  51. // +-----------------------------------------------------------------------+
  52. // |                                                                       |
  53. // | except for the references to the copyright holder, which has either   |
  54. // | been changes or removed.                                              |
  55. // |                                                                       |
  56. // +-----------------------------------------------------------------------+
  57. // $Id: Responsecode.php,v 1.1.2.3 2005/10/19 22:11:54 heino Exp $
  58.  
  59.  
  60.  
  61. // {{{ Constants: Connection
  62.  
  63. /**
  64.  * 'Server ready - posting allowed' (RFC977)
  65.  *
  66.  * @access     public
  67.  * @since      1.1.3
  68.  */
  69. define('NET_NNTP_PROTOCOL_RESPONSECODE_READY_POSTING_ALLOWED'200);
  70.  
  71. /**
  72.  * 'Server ready - no posting allowed' (RFC977)
  73.  *
  74.  * @access     public
  75.  * @since      1.1.3
  76.  */
  77. define('NET_NNTP_PROTOCOL_RESPONSECODE_READY_POSTING_PROHIBITED'201);
  78.  
  79.  
  80. /**
  81.  * 'Closing connection - goodbye!' (RFC977)
  82.  *
  83.  * @access     public
  84.  * @since      1.1.3
  85.  */
  86. //define('NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_REQUESTED', 205);   ///// goodbye
  87.  
  88. /**
  89.  * 'Service discontinued' (RFC977)
  90.  *
  91.  * @access     public
  92.  * @since      1.1.3
  93.  */
  94. //define('NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_FORCED', 400);   ///// unavailable / discontinued
  95.  
  96.  
  97. /**
  98.  * 'Slave status noted' (RFC977)
  99.  *
  100.  * @access     public
  101.  * @since      1.1.3
  102.  */
  103. define('NET_NNTP_PROTOCOL_RESPONSECODE_SLAVE_RECOGNIZED'202);
  104.  
  105.  
  106.  
  107.  
  108. // }}}
  109. // {{{ Constants: Common errors
  110.  
  111.  
  112.  
  113. /**
  114.  * 'Command not recognized' (RFC977)
  115.  *
  116.  * @access     public
  117.  * @since      1.1.3
  118.  */
  119. define('NET_NNTP_PROTOCOL_RESPONSECODE_UNKNOWN_COMMAND'500);
  120.  
  121. /**
  122.  * 'Command syntax error' (RFC977)
  123.  *
  124.  * @access     public
  125.  * @since      1.1.3
  126.  */
  127. define('NET_NNTP_PROTOCOL_RESPONSECODE_SYNTAX_ERROR'501);
  128.  
  129. /**
  130.  * 'Access restriction or permission denied' (RFC977)
  131.  *
  132.  * @access     public
  133.  * @since      1.1.3
  134.  */
  135. define('NET_NNTP_PROTOCOL_RESPONSECODE_NOT_PERMITTED'502);
  136.  
  137. /**
  138.  * 'Program fault - command not performed' (RFC977)
  139.  *
  140.  * @access     public
  141.  * @since      1.1.3
  142.  */
  143. define('NET_NNTP_PROTOCOL_RESPONSECODE_NOT_SUPPORTED'503);
  144.  
  145.  
  146.  
  147. // }}}
  148. // {{{ Constants: Group selection
  149.  
  150.  
  151.  
  152. /**
  153.  * 'Group selected' (RFC977)
  154.  *
  155.  * @access     public
  156.  * @since      1.1.3
  157.  */
  158. define('NET_NNTP_PROTOCOL_RESPONSECODE_GROUP_SELECTED'211);
  159.  
  160. /**
  161.  * 'No such news group' (RFC977)
  162.  *
  163.  * @access     public
  164.  * @since      1.1.3
  165.  */
  166. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_GROUP'411);
  167.  
  168.  
  169.  
  170. // }}}
  171. // {{{ Constants: Article retrieval
  172.  
  173.  
  174.  
  175. /**
  176.  * 'Article retrieved - head and body follow' (RFC977)
  177.  *
  178.  * @access     public
  179.  * @since      1.1.3
  180.  */
  181. define('NET_NNTP_PROTOCOL_RESPONSECODE_ARTICLE_FOLLOWS'220);
  182.  
  183. /**
  184.  * 'Article retrieved - head follows' (RFC977)
  185.  *
  186.  * @access     public
  187.  * @since      1.1.3
  188.  */
  189. define('NET_NNTP_PROTOCOL_RESPONSECODE_HEAD_FOLLOWS'221);
  190.  
  191. /**
  192.  * 'Article retrieved - body follows' (RFC977)
  193.  *
  194.  * @access     public
  195.  * @since      1.1.3
  196.  */
  197. define('NET_NNTP_PROTOCOL_RESPONSECODE_BODY_FOLLOWS'222);
  198.  
  199. /**
  200.  * 'Article retrieved - request text separately' (RFC977)
  201.  *
  202.  * @access     public
  203.  * @since      1.1.3
  204.  */
  205. define('NET_NNTP_PROTOCOL_RESPONSECODE_ARTICLE_SELECTED'223);
  206.  
  207.  
  208.  
  209.  
  210.  
  211. /**
  212.  * 'No newsgroup has been selected' (RFC977)
  213.  *
  214.  * @access     public
  215.  * @since      1.1.3
  216.  */
  217. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_GROUP_SELECTED'412);
  218.  
  219.  
  220. /**
  221.  * 'No current article has been selected' (RFC977)
  222.  *
  223.  * @access     public
  224.  * @since      1.1.3
  225.  */
  226. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_ARTICLE_SELECTED'420);
  227.  
  228. /**
  229.  * 'No next article in this group' (RFC977)
  230.  *
  231.  * @access     public
  232.  * @since      1.1.3
  233.  */
  234. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_NEXT_ARTICLE'421);
  235.  
  236. /**
  237.  * 'No previous article in this group' (RFC977)
  238.  *
  239.  * @access     public
  240.  * @since      1.1.3
  241.  */
  242. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_PREVIOUS_ARTICLE'422);
  243.  
  244.  
  245. /**
  246.  * 'No such article number in this group' (RFC977)
  247.  *
  248.  * @access     public
  249.  * @since      1.1.3
  250.  */
  251. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_ARTICLE_NUMBER'423);
  252.  
  253. /**
  254.  * 'No such article found' (RFC977)
  255.  *
  256.  * @access     public
  257.  * @since      1.1.3
  258.  */
  259. define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_ARTICLE_ID'430);
  260.  
  261.  
  262.  
  263.  
  264.  
  265. // }}}
  266. // {{{ Constants: Transferring
  267.  
  268.  
  269.  
  270. /**
  271.  * 'Send article to be transferred' (RFC977)
  272.  *
  273.  * @access     public
  274.  * @since      1.1.3
  275.  */
  276. define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_SEND'335);
  277.  
  278. /**
  279.  * 'Article transferred ok' (RFC977)
  280.  *
  281.  * @access     public
  282.  * @since      1.1.3
  283.  */
  284. define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_SUCCESS'235);
  285.  
  286. /**
  287.  * 'Article not wanted - do not send it' (RFC977)
  288.  *
  289.  * @access     public
  290.  * @since      1.1.3
  291.  */
  292. define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_UNWANTED'435);
  293.  
  294. /**
  295.  * 'Transfer failed - try again later' (RFC977)
  296.  *
  297.  * @access     public
  298.  * @since      1.1.3
  299.  */
  300. define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_FAILURE'436);
  301.  
  302. /**
  303.  * 'Article rejected - do not try again' (RFC977)
  304.  *
  305.  * @access     public
  306.  * @since      1.1.3
  307.  */
  308. define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_REJECTED'437);
  309.  
  310.  
  311.  
  312. // }}}
  313. // {{{ Constants: Posting
  314.  
  315.  
  316.  
  317. /**
  318.  * 'Send article to be posted' (RFC977)
  319.  *
  320.  * @access     public
  321.  * @since      1.1.3
  322.  */
  323. define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_SEND'340);
  324.  
  325. /**
  326.  * 'Article posted ok' (RFC977)
  327.  *
  328.  * @access     public
  329.  * @since      1.1.3
  330.  */
  331. define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_SUCCESS'240);
  332.  
  333. /**
  334.  * 'Posting not allowed' (RFC977)
  335.  *
  336.  * @access     public
  337.  * @since      1.1.3
  338.  */
  339. define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_PROHIBITED'440);
  340.  
  341. /**
  342.  * 'Posting failed' (RFC977)
  343.  *
  344.  * @access     public
  345.  * @since      1.1.3
  346.  */
  347. define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_FAILURE'441);
  348.  
  349.  
  350.  
  351.  
  352. // }}}
  353. // {{{ Constants: Authorization
  354.  
  355.  
  356.  
  357. /**
  358.  * 'Authorization required for this command' (RFC2980)
  359.  *
  360.  * @access     public
  361.  * @since      1.1.3
  362.  */
  363. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_REQUIRED'450);
  364.  
  365. /**
  366.  * 'Continue with authorization sequence' (RFC2980)
  367.  *
  368.  * @access     public
  369.  * @since      1.1.3
  370.  */
  371. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_CONTINUE'350);
  372.  
  373. /**
  374.  * 'Authorization accepted' (RFC2980)
  375.  *
  376.  * @access     public
  377.  * @since      1.1.3
  378.  */
  379. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_ACCEPTED'250);
  380.  
  381. /**
  382.  * 'Authorization rejected' (RFC2980)
  383.  *
  384.  * @access     public
  385.  * @since      1.1.3
  386.  */
  387. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_REJECTED'452);
  388.  
  389.  
  390.  
  391.  
  392. // }}}
  393. // {{{ Constants: Authentication
  394.  
  395.  
  396.  
  397. /**
  398.  * 'Authentication required' (RFC2980)
  399.  *
  400.  * @access     public
  401.  * @since      1.1.3
  402.  */
  403. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_REQUIRED'480);
  404.  
  405. /**
  406.  * 'More authentication information required' (RFC2980)
  407.  *
  408.  * @access     public
  409.  * @since      1.1.3
  410.  */
  411. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_CONTINUE'381);
  412.  
  413. /**
  414.  * 'Authentication accepted' (RFC2980)
  415.  *
  416.  * @access     public
  417.  * @since      1.1.3
  418.  */
  419. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_ACCEPTED'281);
  420.  
  421. /**
  422.  * 'Authentication rejected' (RFC2980)
  423.  *
  424.  * @access     public
  425.  * @since      1.1.3
  426.  */
  427. define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_REJECTED'482);
  428.     
  429.  
  430. // }}}
  431. // {{{ Constants: Misc
  432.  
  433.  
  434.  
  435. /**
  436.  * 'Help text follows' (Draft)
  437.  *
  438.  * @access     public
  439.  * @since      1.1.3
  440.  */
  441. define('NET_NNTP_PROTOCOL_RESPONSECODE_HELP_FOLLOWS'100);
  442.  
  443. /**
  444.  * 'Capabilities list follows' (Draft)
  445.  *
  446.  * @access     public
  447.  * @since      1.1.3
  448.  */
  449. define('NET_NNTP_PROTOCOL_RESPONSECODE_CAPABILITIES_FOLLWOS'101);
  450.  
  451. /**
  452.  * 'Server date and time' (Draft)
  453.  *
  454.  * @access     public
  455.  * @since      1.1.3
  456.  */
  457. define('NET_NNTP_PROTOCOL_RESPONSECODE_SERVER_DATE'111);
  458.  
  459. /**
  460.  * 'Information follows' (Draft)
  461.  *
  462.  * @access     public
  463.  * @since      1.1.3
  464.  */
  465. define('NET_NNTP_PROTOCOL_RESPONSECODE_GROUPS_FOLLOW'215);
  466.  
  467. /**
  468.  * 'Overview information follows' (Draft)
  469.  *
  470.  * @access     public
  471.  * @since      1.1.3
  472.  */
  473. define('NET_NNTP_PROTOCOL_RESPONSECODE_OVERVIEW_FOLLOWS'224);
  474.  
  475. /**
  476.  * 'Headers follow' (Draft)
  477.  *
  478.  * @access     public
  479.  * @since      1.1.3
  480.  */
  481. define('NET_NNTP_PROTOCOL_RESPONSECODE_HEADERS_FOLLOW'225);
  482.  
  483. /**
  484.  * 'List of new articles follows' (Draft)
  485.  *
  486.  * @access     public
  487.  * @since      1.1.3
  488.  */
  489. define('NET_NNTP_PROTOCOL_RESPONSECODE_NEW_ARTICLES_FOLLOW'230);
  490.  
  491. /**
  492.  * 'List of new newsgroups follows' (Draft)
  493.  *
  494.  * @access     public
  495.  * @since      1.1.3
  496.  */
  497. define('NET_NNTP_PROTOCOL_RESPONSECODE_NEW_GROUPS_FOLLOW'231);
  498.  
  499. /**
  500.  * 'The server is in the wrong mode; the indicated capability should be used to change the mode' (Draft)
  501.  *
  502.  * @access     public
  503.  * @since      1.1.3
  504.  */
  505. define('NET_NNTP_PROTOCOL_RESPONSECODE_WRONG_MODE'401);
  506.  
  507. /**
  508.  * 'Internal fault or problem preventing action being taken' (Draft)
  509.  *
  510.  * @access     public
  511.  * @since      1.1.3
  512.  */
  513. define('NET_NNTP_PROTOCOL_RESPONSECODE_INTERNAL_FAULT'403);
  514.  
  515. /**
  516.  * 'Command unavailable until suitable privacy has been arranged' (Draft)
  517.  *
  518.  * (the client must negotiate appropriate privacy protection on the connection.
  519.  * This will involve the use of a privacy extension such as [NNTP-TLS].)
  520.  *
  521.  * @access     public
  522.  * @since      1.1.3
  523.  */
  524. //define('NET_NNTP_PROTOCOL_RESPONSECODE_ENCRYPTION_REQUIRED', 483);
  525.  
  526. /**
  527.  * 'Error in base64-encoding [RFC3548] of an argument' (Draft)
  528.  *
  529.  * @access     public
  530.  * @since      1.1.3
  531.  */
  532. define('NET_NNTP_PROTOCOL_RESPONSECODE_BASE64_ENCODING_ERROR'504);
  533.  
  534. // }}}
  535.  
  536. ?>

Documentation generated on Mon, 11 Mar 2019 14:12:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.