Diff: [root] @ 5c6f524f6fe | faq | css

Fixed desc, added example

File: hellnet/protocols/transfer [Diff]

diff --git a/hellnet/protocols/transfer b/hellnet/protocols/transfer
index b57a36e..d8a29ba 100644
-- a/hellnet/protocols/transfer
++ b/hellnet/protocols/transfer
@@ -6,6 +6,8 @@ Conversation consists of lines, separated by \n (text mode) or data chunks (data

h2. Text mode commands

All fields are separated with single space, 'data' in FLD may contain spaces though.

h3. MOD module_name

Means start of data structure named 'module_name'. If another module have already been started, throw error.
@@ -14,10 +16,19 @@ 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 name size

Initiates data mode. mode for field 'name'. 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
Ends a module

Example of correct structure transfer:

bc. MOD query
FLD hops 1
FLD query hash
DAT args
�d��W��uu&f(�69��須��?K4{u��@�����Ӌ*�yT��O;��|ÑZT}����Kn��
END
\ No newline at end of file

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