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

Hellnet Transfer protocol

File created: 33188 hellnet/protocols/transfer [Diff]

diff --git a/hellnet/protocols/transfer b/hellnet/protocols/transfer
new file mode 100644
index 0000000..b57a36e
-- /dev/null
++ b/hellnet/protocols/transfer
@@ -0,0 +1,23 @@
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
\ No newline at end of file

By Voker57 on 2009-02-11 22:08:08 +0300 Powered by bitcheese wiki engine