Diff: [root] @ 72dd96151b1 | faq | css

Hellnet Transfer protocol

File created: hellnet/protocols/transfer [Diff]

-- /dev/null++ b/hellnet/protocols/transfer
@@ -1 +1,24 @@
h1. HellNet data transfer protocol

This protocol is used to transfer data structures between HellNet nodes.

Conversation consists of lines, separated by \n (text mode) or data chunks (data mode).

h2. Text mode commands

h3. MOD module_name

Means start of data structure named 'module_name'. If another module have already been started, throw error.

h3. FLD name data

Textual field 'name' with 'data' as content. 'data' may contain any character except of \n. Used for transferring small amount of data without linebreaks.

h4. DAT size

Initiates data mode. Right after delimiting \n recipient should start reading data and switch back to lines mode after exactly 'size' bytes of data

h3. END

Ends a module

By Voker57 on 2009-02-11 19:08:08 +0000