X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=doc%2Fprotocol%2Fcmd%2Fcnct.tex;fp=doc%2Fprotocol%2Fcmd%2Fcnct.tex;h=0bd80d329bf4ae496639f2907e1f457592c01931;hb=43c0eb2d8744a2f2d3690b723eb226dca33c0c3b;hp=0000000000000000000000000000000000000000;hpb=cf9b068afda70d24f416d86faf90a27c39e905ad;p=doldaconnect.git diff --git a/doc/protocol/cmd/cnct.tex b/doc/protocol/cmd/cnct.tex new file mode 100644 index 0000000..0bd80d3 --- /dev/null +++ b/doc/protocol/cmd/cnct.tex @@ -0,0 +1,47 @@ +\syntax{cnct FNET HOSTNAME [(KEY VALUE)...]} + +\begin{reqdesc} + Instructs the daemon to connect to a hub. The \param{FNET} parameter + is the name of the protocol that the hub will be running, and the + \param{HOSTNAME} parameter is the network name of the + hub. Currently, the only supported value for \param{FNET} is + \texttt{dc}, indicating the Direct Connect + protocol. \param{HOSTNAME} may be either an IPv4 address or a + symbolic hostname, followed by a colon and the port number to + connect to. Zero or more key-value pairs may be supplied as well, + setting certain parameters of the protocol operation. Currently + supported keys are: + + \begin{itemize} + \item \texttt{nick}: The nickname to use when speaking to the hub, + instead of the daemon's default nickname. + \item \texttt{password}: The password to supply if the hub asks for + one. + \item \texttt{charset}: For Direct Connect hubs, the character + encoding to use instead of the default CP1252. + \end{itemize} +\end{reqdesc} + +\revision{1} +\perm{fnetctl} + +\begin{responses} + \response{200 ID} + The daemon has created a node for the hub and will be attempting to + connect to it. The \param{ID} parameter is the unique numeric ID for + the new node. + \response{504} + The \param{HOSTNAME} parameter could not be converted to the local + character set on the system running the daemon, so no connection + attempt could be made. + \response{509} + The \param{HOSTNAME} parameter was invalid and could not be parsed + by the daemon. + \response{511} + The daemon does not support the protocol named by the \param{FNET} + parameter. + \response{515} + The daemon administrator has set a quota restricting the maximum + number of connected hubs, and a new connection attempt would violate + that quota. +\end{responses}