rfc2812.txt
来自「中、英文RFC文档大全打包下载完全版 .」· 文本 代码 · 共 1,794 行 · 第 1/5 页
TXT
1,794 行
server "tolsun.oulu.fi".3.4.4 Stats message Command: STATS Parameters: [ <query> [ <target> ] ] The stats command is used to query statistics of certain server. If <query> parameter is omitted, only the end of stats reply is sent back. A query may be given for any single letter which is only checked by the destination server and is otherwise passed on by intermediate servers, ignored and unaltered. Wildcards are allowed in the <target> parameter.Kalt Informational [Page 26]RFC 2812 Internet Relay Chat: Client Protocol April 2000 Except for the ones below, the list of valid queries is implementation dependent. The standard queries below SHOULD be supported by the server: l - returns a list of the server's connections, showing how long each connection has been established and the traffic over that connection in Kbytes and messages for each direction; m - returns the usage count for each of commands supported by the server; commands for which the usage count is zero MAY be omitted; o - returns a list of configured privileged users, operators; u - returns a string showing how long the server has been up. It is also RECOMMENDED that client and server access configuration be published this way. Numeric Replies: ERR_NOSUCHSERVER RPL_STATSLINKINFO RPL_STATSUPTIME RPL_STATSCOMMANDS RPL_STATSOLINE RPL_ENDOFSTATS Examples: STATS m ; Command to check the command usage for the server you are connected to3.4.5 Links message Command: LINKS Parameters: [ [ <remote server> ] <server mask> ] With LINKS, a user can list all servernames, which are known by the server answering the query. The returned list of servers MUST match the mask, or if no mask is given, the full list is returned. If <remote server> is given in addition to <server mask>, the LINKS command is forwarded to the first server found that matches that name (if any), and that server is then required to answer the query. Numeric Replies: ERR_NOSUCHSERVER RPL_LINKS RPL_ENDOFLINKSKalt Informational [Page 27]RFC 2812 Internet Relay Chat: Client Protocol April 2000 Examples: LINKS *.au ; Command to list all servers which have a name that matches *.au; LINKS *.edu *.bu.edu ; Command to list servers matching *.bu.edu as seen by the first server matching *.edu.3.4.6 Time message Command: TIME Parameters: [ <target> ] The time command is used to query local time from the specified server. If the <target> parameter is not given, the server receiving the command must reply to the query. Wildcards are allowed in the <target> parameter. Numeric Replies: ERR_NOSUCHSERVER RPL_TIME Examples: TIME tolsun.oulu.fi ; check the time on the server "tolson.oulu.fi"3.4.7 Connect message Command: CONNECT Parameters: <target server> <port> [ <remote server> ] The CONNECT command can be used to request a server to try to establish a new connection to another server immediately. CONNECT is a privileged command and SHOULD be available only to IRC Operators. If a <remote server> is given and its mask doesn't match name of the parsing server, the CONNECT attempt is sent to the first match of remote server. Otherwise the CONNECT attempt is made by the server processing the request. The server receiving a remote CONNECT command SHOULD generate a WALLOPS message describing the source and target of the request. Numeric Replies: ERR_NOSUCHSERVER ERR_NOPRIVILEGES ERR_NEEDMOREPARAMSKalt Informational [Page 28]RFC 2812 Internet Relay Chat: Client Protocol April 2000 Examples: CONNECT tolsun.oulu.fi 6667 ; Command to attempt to connect local server to tolsun.oulu.fi on port 66673.4.8 Trace message Command: TRACE Parameters: [ <target> ] TRACE command is used to find the route to specific server and information about its peers. Each server that processes this command MUST report to the sender about it. The replies from pass-through links form a chain, which shows route to destination. After sending this reply back, the query MUST be sent to the next server until given <target> server is reached. TRACE command is used to find the route to specific server. Each server that processes this message MUST tell the sender about it by sending a reply indicating it is a pass-through link, forming a chain of replies. After sending this reply back, it MUST then send the TRACE message to the next server until given server is reached. If the <target> parameter is omitted, it is RECOMMENDED that TRACE command sends a message to the sender telling which servers the local server has direct connection to. If the destination given by <target> is an actual server, the destination server is REQUIRED to report all servers, services and operators which are connected to it; if the command was issued by an operator, the server MAY also report all users which are connected to it. If the destination given by <target> is a nickname, then only a reply for that nickname is given. If the <target> parameter is omitted, it is RECOMMENDED that the TRACE command is parsed as targeted to the processing server. Wildcards are allowed in the <target> parameter. Numeric Replies: ERR_NOSUCHSERVER If the TRACE message is destined for another server, all intermediate servers must return a RPL_TRACELINK reply to indicate that the TRACE passed through it and where it is going next. RPL_TRACELINKKalt Informational [Page 29]RFC 2812 Internet Relay Chat: Client Protocol April 2000 A TRACE reply may be composed of any number of the following numeric replies. RPL_TRACECONNECTING RPL_TRACEHANDSHAKE RPL_TRACEUNKNOWN RPL_TRACEOPERATOR RPL_TRACEUSER RPL_TRACESERVER RPL_TRACESERVICE RPL_TRACENEWTYPE RPL_TRACECLASS RPL_TRACELOG RPL_TRACEEND Examples: TRACE *.oulu.fi ; TRACE to a server matching *.oulu.fi3.4.9 Admin command Command: ADMIN Parameters: [ <target> ] The admin command is used to find information about the administrator of the given server, or current server if <target> parameter is omitted. Each server MUST have the ability to forward ADMIN messages to other servers. Wildcards are allowed in the <target> parameter. Numeric Replies: ERR_NOSUCHSERVER RPL_ADMINME RPL_ADMINLOC1 RPL_ADMINLOC2 RPL_ADMINEMAIL Examples: ADMIN tolsun.oulu.fi ; request an ADMIN reply from tolsun.oulu.fi ADMIN syrk ; ADMIN request for the server to which the user syrk is connectedKalt Informational [Page 30]RFC 2812 Internet Relay Chat: Client Protocol April 20003.4.10 Info command Command: INFO Parameters: [ <target> ] The INFO command is REQUIRED to return information describing the server: its version, when it was compiled, the patchlevel, when it was started, and any other miscellaneous information which may be considered to be relevant. Wildcards are allowed in the <target> parameter. Numeric Replies: ERR_NOSUCHSERVER RPL_INFO RPL_ENDOFINFO Examples: INFO csd.bu.edu ; request an INFO reply from csd.bu.edu INFO Angel ; request info from the server that Angel is connected to.3.5 Service Query and Commands The service query group of commands has been designed to return information about any service which is connected to the network.3.5.1 Servlist message Command: SERVLIST Parameters: [ <mask> [ <type> ] ] The SERVLIST command is used to list services currently connected to the network and visible to the user issuing the command. The optional parameters may be used to restrict the result of the query (to matching services names, and services type). Numeric Replies: RPL_SERVLIST RPL_SERVLISTENDKalt Informational [Page 31]RFC 2812 Internet Relay Chat: Client Protocol April 20003.5.2 Squery Command: SQUERY Parameters: <servicename> <text> The SQUERY command is used similarly to PRIVMSG. The only difference is that the recipient MUST be a service. This is the only way for a text message to be delivered to a service. See PRIVMSG for more details on replies and example. Examples: SQUERY irchelp :HELP privmsg ; Message to the service with nickname irchelp. SQUERY dict@irc.fr :fr2en blaireau ; Message to the service with name dict@irc.fr.3.6 User based queries User queries are a group of commands which are primarily concerned with finding details on a particular user or group users. When using wildcards with any of these commands, if they match, they will only return information on users who are 'visible' to you. The visibility of a user is determined as a combination of the user's mode and the common set of channels you are both on. Although services SHOULD NOT be using this class of message, they are allowed to.3.6.1 Who query Command: WHO Parameters: [ <mask> [ "o" ] ] The WHO command is used by a client to generate a query which returns a list of information which 'matches' the <mask> parameter given by the client. In the absence of the <mask> parameter, all visible (users who aren't invisible (user mode +i) and who don't have a common channel with the requesting client) are listed. The same result can be achieved by using a <mask> of "0" or any wildcard which will end up matching every visible user. The <mask> passed to WHO is matched against users' host, server, real name and nickname if the channel <mask> cannot be found.Kalt
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?