rfc2259.txt

来自「<VC++网络游戏建摸与实现>源代码」· 文本 代码 · 共 1,684 行 · 第 1/4 页

TXT
1,684
字号
      2yz   Positive completion reply      3yz   Positive intermediate reply      4yz   Transient negative completion reply      5yz   Permanent negative completion reply      6yx   Transient negative intermediate reply      7yx   Permanent negative intermediate reply      x0z   Syntax or semantic problem      x1z   Informational reply      x2z   Related to transmission channel      x3z   Formatted (location coded) report for GUI      x4z   Status message to be displayed by GUI      x5z   Related to query resolver      x6z   Related to data repository      x9z   Component generating the error is unknown or suspect                     Table 2: Reply Code Structure   ---------------------------------------------------------------------Elliott & Ordille            Informational                     [Page 23]RFC 2259                          SNQP                      January 1998   The GUI-related reply codes are only used if the server has been   informed that it is communicating with a graphical user interface,   via the imagui command.   For such codes in the x3z space, digit "z"   takes on the role of digit "y" in other codes. I.e. 735 are permanent   negative intermediate replies about the query resolver.   Table 3a and Table 3b list the defined regular (non-GUI) reply codes.   Text messages for the reply codes may vary.  The codes are sorted   numerically.   ---------------------------------------------------------------------      210-The following commands are available:      211-There are <n> relations defined:      212-There are <n> attributes in relation "<relation>":      213 Performing <comparison-type> type equality comparisons      214 Basic advice enabled.  Query responses disabled.      214 Advice enabled for "<attribute>" in "<relation>"      215 GUI responses enabled      215 GUI responses disabled      216 Query responses enabled.  Advice disabled.      220 <domain-name> <snqp-service-name> Query Service ready      221 <domain-name> closing transmission channel      250 All queries processed      250 All queries processed.  Current through <time>.      251 All pending queries and responses discarded      340 Searching <n> data repositories      350 Send the query text, end with .      351 Partial response follows, ended with .      352 Beginning next query in batch      352 Beginning next query in batch.  Previous current through <time>.      353 Starting next query. Any pending responses discarded.      354 The query will contact <n> data repositories, ended with .      355 There are <n> attributes that may constrain the query, ended with .      356 There are <n> possible values for attribute "<attribute>":      357 There are <n> constraining values for attribute "<attribute>":      420 Too many connections in progress. Try later.      421 Error in communicating with <snqp-service-name>      450 No query in progress      451 Cancel ignored                        Table 3a: Reply Codes   ---------------------------------------------------------------------Elliott & Ordille            Informational                     [Page 24]RFC 2259                          SNQP                      January 1998   ---------------------------------------------------------------------      450 Query already in progress      490 Internal error: Invalid query reference number      491 System error: <error number or message>      492 Internal error: Out of client table space      499 <snqp-service-name> shutting down      500 Sorry, no help is available for "<command>"      501 Unknown command      502 Too many arguments for this command      502 Not enough arguments for this command      514 Advice not available      514 Advice not available on <attribute>      552 Query blocks are limited to one SQL query      553 Unknown relation      553 Unknown relation.  Current through <TIME>.      554 Unknown attribute      555 Unknown comparison type      556 T-bounds not supported      557 Will not list more than <n> data repositories      557 Will not list more than <n> attribute values      557 Will not list more than <n> responses      557 Too many data repositories to list      557 Too many attribute values to list      557 Too many responses to list      557 Too many data repositories to search      651 <Error message from query resolver>      653 <Communications error> with <location> <location description>      660 <Error> from <location> <location description>      700 <SQL parse error message>      750 <SQL semantic error message>      751 <Error message from query resolver>      761 <Requirements error> for <location> <location description>      790 Internal error: <fatal error from SNQP server>                        Table 3b: Reply Codes                                  (Continued)   ---------------------------------------------------------------------Elliott & Ordille            Informational                     [Page 25]RFC 2259                          SNQP                      January 1998   Table 4 lists the defined GUI reply codes.  Text messages for the   reply codes may vary.  The codes are sorted numerically.  An   explanation of the codes follows the table.   ---------------------------------------------------------------------      331 nnnnnnn! <message>      331 nnnnnnn.mmmmmm <message>      331 nnnnnnn-mmmmmm <message>      730 nnnnnnnammmmmm e <parse error message>      735 nnnnnnnammmmmm e <semantic error message>      340 <status>                        Table 4: GUI Reply Codes   ---------------------------------------------------------------------   In Table 4, nnnnnnn is the line number in a query block, and mmmmmm   is the column in the line.  Both numbers begin counting with 1.  The   exclamation point response directs the program to list information   after line n.  The period response directs the program to break line   n at column m.  The hyphen response directs the program to flag line   n at column m.  Replies 730 and 735 direct the GUI to indicate the   parsing or semantic error at line n, column m.  Response 340 provides   status information that can be displayed immediately in the GUI's   status line.  A sample status message is one that indicates which   data repository is being contacted.5. Protocol Requirements   SQL queries may often have more functionality then a server supports   or an application demands.  Moreover, query blocks larger than one   SQL query, advice on query costs, some types of comparison operations   or t-bounds need not be supported by a particular server.  SNQP   defines a minimal subset of functionality for a working SNQP   protocol.  Functionality beyond this subset is optional.  Servers   that do not support optional functionality must return replies that   indicate this to the user.   Table 5 lists the minimum functionality for an SNQP server.Elliott & Ordille            Informational                     [Page 26]RFC 2259                          SNQP                      January 1998   ---------------------------------------------------------------------      Command       Limitations   ---------------------------------------------------------------------      advice        Not supported.      attributes    List the attributes for a relation.      compare       List type of comparison operation.  At least                    one of CCSO and default comparison types must                    be supported.  Wildcards in SQL query strings                    can be rejected by the query command with an                    appropriate semantic error message.      help          Explain the available SNQP commands.      imagui        Not supported.      next          Not supported.      noadvice      Supported, but has no effect since advice                    is not supported.      noimagui      Supported, but has no effect since imagui                    is not supported.      query         Submit a block containing one SQL query statement.                    The minimum supported SQL query statement is                    a selection query that performs equality                    comparisons between attribute values and                    constant strings.  Conjunctions of such comparisons                    are supported.  The minimum SQL query does not allow                    projections, but returns all the attributes                    for matching tuples.      relations     List the relations available through the SNQP                    server.      stop          End processing of current query.      quit          Terminate the query session.                 Table 5: Minimum  SNQP Server Requirements                          (Commands do not support t-bounds)   ---------------------------------------------------------------------6. Security Considerations   SNQP clients and servers depend on the Domain Name Service.  They are   subject to all the security issues that arise in that context.  This   version of the SNQP protocol does not define procedures for   protecting the information communicated to and from an SNQP server.Elliott & Ordille            Informational                     [Page 27]RFC 2259                          SNQP                      January 19987. References   [1]   American National Standards Institute. "SQL," ANSI Standard         X3.135-1989.  1989.   [2]   H. Garcia-Molina, G. Wiederhold. "Read-Only Transactions in         a Distributed Database,"  ACM Transactions on Database Systems         7(2), pp. 209-234.  June 1982.   [3]   S. Dorner, P. Pomes. "The CCSO Nameserver: A Description,"         Computer and Communications Services Office Technical Report,         University of Illinois, Urbana, USA. 1992. Available in the         current "qi" distribution from         <URL:ftp://uiarchive.cso.uiuc.edu/local/packages/ph>   [4]   J. Levine, T. Mason, D. Brown. "Parsing SQL," lex  yacc, 2nd         ed.  O'Reilly and Associates, Inc. 1992.   [5]   Ordille, J., "The Internet Nomenclator Project", RFC 2258,         January 1998.   [6]   J. Ordille. "Descriptive Name Services for Large Internets,"         Ph. D. Dissertation. University of Wisconsin. 1993.         <URL:http://cm.bell-labs.com/cm/cs/doc/93/12-01.ps.gz>   [7]   J. Ordille, B. Miller. "Distributed Active Catalogs and         Meta-Data Caching in Descriptive Name Services," Thirteenth         International IEEE Conference on Distributed Computing Systems,         pp. 120-129.  May 1993.         <URL:http://cm.bell-labs.com/cm/cs/doc/93/5-01.ps.gz>   [8]   J. Ordille. "Nomenclator Home Page." 1997.         <URL:http://cm.bell-labs.com/cm/cs/what/nomenclator/>   [9]   Postel, J., "Simple Mail Transfer Protocol", STD 10, RFC 821,         August 1982.   [10   Yeong, W., Howes, T., and S. Kille.  "Lightweight Directory         Access Protocol", RFC 1777, March 1995.Elliott & Ordille            Informational                     [Page 28]RFC 2259                          SNQP                      January 19988. Authors' Addresses   Jim Elliott   Epic Systems Corporation   5301 Tokay Boulevard   Madison, WI 53711  USA   EMail: jim@apocalypse.org   Joann J. Ordille   Bell Labs, Lucent Technologies   Computing Sciences Research Center   700 Mountain Avenue, Rm 2C-301   Murray Hill, NJ 07974  USA   EMail: joann@bell-labs.comElliott & Ordille            Informational                     [Page 29]RFC 2259                          SNQP                      January 19989.  Full Copyright Statement   Copyright (C) The Internet Society (1998).  All Rights Reserved.   This document and translations of it may be copied and furnished to   others, and derivative works that comment on or otherwise explain it   or assist in its implementation may be prepared, copied, published   and distributed, in whole or in part, without restriction of any   kind, provided that the above copyright notice and this paragraph are   included on all such copies and derivative works.  However, this   document itself may not be modified in any way, such as by removing   the copyright notice or references to the Internet Society or other   Internet organizations, except as needed for the purpose of   developing Internet standards in which case the procedures for   copyrights defined in the Internet Standards process must be   followed, or as required to translate it into languages other than   English.   The limited permissions granted above are perpetual and will not be   revoked by the Internet Society or its successors or assigns.   This document and the information contained herein is provided on an   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.Elliott & Ordille            Informational                     [Page 30]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?