[noctool-cvs] CVS web
imattsson
imattsson at common-lisp.net
Wed Aug 27 10:53:17 UTC 2008
Update of /project/noctool/cvsroot/web
In directory clnet:/tmp/cvs-serv2352
Modified Files:
hacking.html
Log Message:
IM
Fixed paragraph breaks.
--- /project/noctool/cvsroot/web/hacking.html 2008/08/27 06:12:27 1.5
+++ /project/noctool/cvsroot/web/hacking.html 2008/08/27 10:53:17 1.6
@@ -136,37 +136,37 @@
rules and hands over a complete read to the parser. It is done this
way so incomplete syntactic units can be sent across the network, to
be completed in a following transmission.
-
+<p>
The parser is, for all intents and purposes, CL:READ-FROM-STRING (at
the moment), though it binds *READ-EVAL* and *READ-BASE*.
-
+<p>
The resulting list data structure (whose rough structure is:
<blockquote>(message <i>protocol-data</i> <i>digest</i>)</blockquote>
-
+<p>
The protocol-data is extracted and handed over to the protocl handler
loop, where different things happen depending on the state of the
connection.
-
+<p>
There are three recognised states for any given connection, they can
be initial, sent-validation or validated. The state is kept in the
STATE slot of the connection class.
-
+<p>
When a connection is opened, the opening party will send an IAM
protocol message (that looks roughly like "(iam sender reciever
20080401T131415)") and sent its own state as sent-validation.
-
+<p>
Any incoming connection will be created in the initial state. The main
difference between the initial and sent-validation states is how they
-react ti an IAM protocol message. In the initial state, this triggers
-teh sending of an IAM message before moving to the validated state, in
+react to an IAM protocol message. In the initial state, this triggers
+the sending of an IAM message before moving to the validated state, in
the sent-validation case it does not.
-
+<p>
The IAM message is used to tie a connection to a specific peer (as
configured). Each peer-to-peer connection has one or two secrets
(either identical or different shared secret(s)), this secret is used
for a HMAC-SHA1 digest of the protocol-data. The amount of time an
IAM message can be outstanding is controlled by VALIDATE-TIMESTRING.
-
+<p>
In the validated state, protocol messages are dispatched by looking up
the protocol message identifier in a hash table (called
*HANDLER-MAP*). The easiest way to define a new handler is by the
@@ -177,7 +177,7 @@
handler to be called during execution.
<div class="footer">
- Last updated on $Id: hacking.html,v 1.5 2008/08/27 06:12:27 imattsson Exp $, by $Author: imattsson $
+ Last updated on $Id: hacking.html,v 1.6 2008/08/27 10:53:17 imattsson Exp $, by $Author: imattsson $
</div>
</body>
</html>
More information about the noctool-cvs
mailing list