[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 231/324: doc: Document message verifiers.
From: |
gnunet |
Subject: |
[gnunet-scheme] 231/324: doc: Document message verifiers. |
Date: |
Tue, 21 Sep 2021 13:24:31 +0200 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit 611b5d52b383150af72c68f81b97dc6304d1cd20
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Sep 3 20:07:59 2021 +0200
doc: Document message verifiers.
* doc/scheme-gnunet.tm (Message handler): Document the message
verifier.
---
doc/scheme-gnunet.tm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/doc/scheme-gnunet.tm b/doc/scheme-gnunet.tm
index 004f9d8..8981b4e 100644
--- a/doc/scheme-gnunet.tm
+++ b/doc/scheme-gnunet.tm
@@ -372,8 +372,17 @@
components: the <with|font-shape|italic|type> of message it handles, an
<with|font-shape|italic|interposer> which will be explained later, the
<with|font-shape|italic|verifier> deciding if a message is well-formed and
- the <with|font-shape|italic|handler procedure>. <todo|document the message
- type database, interposer and handler procedure>
+ the <with|font-shape|italic|handler procedure>.
+
+ The verifier is passed a bytevector slice with the message and should
+ return <scm|#true> if the message is well-formed and <scm|#false> if it
+ isn't.<space|1em>It may assume that the length of the slice corresponds to
+ the length <em|in> the message header and is at least the length <em|of>
+ the message header and that the type in the message header corresponds to
+ the type of the message handler.<space|1em>Messages will only be passed to
+ the handler procedue if the verifiers returns <scm|#true>.
+
+ <todo|document the message type database, interposer and handler procedure>
<subsection|Error handler>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] 225/324: mq: Inject errors when message verification has negative result., (continued)
- [gnunet-scheme] 225/324: mq: Inject errors when message verification has negative result., gnunet, 2021/09/21
- [gnunet-scheme] 234/324: doc: Remove resolved TODO., gnunet, 2021/09/21
- [gnunet-scheme] 240/324: mq-impl/stream: Handle ECONNRESET gracefully., gnunet, 2021/09/21
- [gnunet-scheme] 238/324: mq-impl/stream: Allow closing queues made with connect-fibers., gnunet, 2021/09/21
- [gnunet-scheme] 244/324: doc: Document the 'disconnected' callback., gnunet, 2021/09/21
- [gnunet-scheme] 246/324: mq,mq-impl: Remove TODOs about allocating memory., gnunet, 2021/09/21
- [gnunet-scheme] 245/324: mq-impl/stream: Eliminate 'return' argument of 'handle-input!'., gnunet, 2021/09/21
- [gnunet-scheme] 251/324: tests/utils: Move call-with-spawner from tests/mq-stream.scm., gnunet, 2021/09/21
- [gnunet-scheme] 221/324: mq-impl/stream: Delay knowing the port., gnunet, 2021/09/21
- [gnunet-scheme] 228/324: doc/fdl: Correct ‘quote’ typography., gnunet, 2021/09/21
- [gnunet-scheme] 231/324: doc: Document message verifiers.,
gnunet <=
- [gnunet-scheme] 236/324: mq-impl/stream: Close the port when stopping the fibers., gnunet, 2021/09/21
- [gnunet-scheme] 242/324: nse/client: Remove unused fields., gnunet, 2021/09/21
- [gnunet-scheme] 243/324: doc/scheme-gnunet.tm: Correct use of 'connected' and 'updated'., gnunet, 2021/09/21
- [gnunet-scheme] 237/324: mq-impl/stream: Allow closing the queue on request., gnunet, 2021/09/21
- [gnunet-scheme] 247/324: nse/client: Only call 'send-start!' after 'mq' has been defined., gnunet, 2021/09/21
- [gnunet-scheme] 248/324: tests/mq-stream: Add missing parenthesis., gnunet, 2021/09/21
- [gnunet-scheme] 249/324: nse/client: Prepare for auto-reconnecting., gnunet, 2021/09/21
- [gnunet-scheme] 250/324: doc: Document that (gnu gnunet nse client) reconnects., gnunet, 2021/09/21
- [gnunet-scheme] 253/324: nse/client: Correct type documentation of <server>., gnunet, 2021/09/21
- [gnunet-scheme] 254/324: doc: Document how to disconnect from the NSE server., gnunet, 2021/09/21