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

Fixed desc, added example

File: hellnet/protocols/transfer [Diff]

-- a/hellnet/protocols/transfer++ b/hellnet/protocols/transfer
@@ -6,6 +6,8 @@

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,11 +16,20 @@

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

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

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