Author: dylan
Date: 2004-07-31 18:15:07 -0400 (Sat, 31 Jul 2004)
New Revision: 331
Modified:
branches/protocol-v4/docs/manual/chap/commands.tex
Log:
Minor changes...
Modified: branches/protocol-v4/docs/manual/chap/commands.tex
===================================================================
--- branches/protocol-v4/docs/manual/chap/commands.tex 2004-07-31 18:27:58 UTC
(rev 330)
+++ branches/protocol-v4/docs/manual/chap/commands.tex 2004-07-31 22:15:07 UTC
(rev 331)
@@ -1,24 +1,41 @@
\newenvironment{commands}{\begin{description}}{\end{description}}
-\newcommand{\cmd}[2]{\item[#1] \emph{#2}}
+\newenvironment{errors}{\begin{description}}{\end{description}}
+\newcommand{\cmd}[2]{\item[#1] #2}
+\newcommand{\err}[2]{\item[#1] #2}
+\newcommand{\param}[1]{\emph{#1}}
+\newcommand{\opt}[1]{[\param{#1}]}
\chapter{Commands}
-\section{Server Commands}
+\section{Client Commands}
+This section describes the commands that clients may send to the server.
\begin{commands}
-\cmd{HAVER}{client}
+\cmd{HAVER}{\param{client}}
-Greet the server and give it fish.
+A client will send this command when it first connects
+to the server. The argument \param{client} should be the name and version
number
+of the user-agent. For example, haver-gtk sends ``Haver::GTK/0.3''.
-\cmd{WANT}{want foo bar}
+The server will reply with two commands, HAVER, and WANT, in that order.
-The server wants cmd, very badly.
+\cmd{IDENT}{\param{id} \opt{mode}}
+Login as \param{id} in mode \param{mode}, where \param{mode}
+is optional and defaults to ``user''.
+
+This is the reply to WANT IDENT.
+
+\begin{errors}
+\err{}{}
+
+
+
\end{commands}
\section{Client Commands}