Diff: [root] @ f575b044fb4 | faq | css

Hellnet update

File: hellnet/protocols/HTTP [Diff]

diff --git a/hellnet/protocols/HTTP b/hellnet/protocols/HTTP
index cae7fee..b7ef712 100644
-- a/hellnet/protocols/HTTP
++ b/hellnet/protocols/HTTP
@@ -4,5 +4,6 @@ Peers are passing queries via HTTP queries (like GET /chunks/0a/04588fab48f or P

h2. Query types

\ No newline at end of file
|_. Query |_. Path |_. Static/dynamic |_. Description |
| GET | /chunks/([0-9a-f]+) | static | Chunk [[/hellnet/tech/chunk|Chunk]] with hash $1 |
\ No newline at end
| GET | /meta/([^/]+)/([^/]+) | static | List of file chunks which are inserted with [[/hellnet/tech/metachunks|meta]] $1:$2 |
\ No newline at end of file

File: hellnet/status [Diff]

diff --git a/hellnet/status b/hellnet/status
index eeb7541..76efac9 100644
-- a/hellnet/status
++ b/hellnet/status
@@ -4,4 +4,4 @@ h2. Server implementations

*Hellspawn* -- Hellnet daemon in Qt/C++. Supports data inserting, retrieving, [[protocols/transfer|message]] parsing and even some network connectivity. Doesn't work out of localhost, development is stopped in favour of hspawn.

*[[hspawn|Hspawn]]* -- Hellnet daemon in Haskell. Currently supports data inserting and retrieval (optionally [[crypto/symmetric|encrypted]]), [[/hellnet/tech/metachunks|metachunks]] with manual server discovery

File created: 33188 hellnet/tech/metachunks [Diff]

diff --git a/hellnet/tech/metachunks b/hellnet/tech/metachunks
new file mode 100644
index 0000000..d2f3eac
-- /dev/null
++ b/hellnet/tech/metachunks
@@ -0,0 +1,5 @@
h1. Metachunks

Metachunks are special files, which contain hashes of [[chunk]]s, inserted under specific category. For example, @hell-talk@ uses metachunk "talk:0" to exchange phrases between nodes.

Metachunks are stored in meta/<value>/<key> files and contain concatenated hashes.
\ No newline at end of file

File: hellnet/tech/recursive-filelinks [Diff]

diff --git a/hellnet/tech/recursive-filelinks b/hellnet/tech/recursive-filelinks
index 2b6bd3f..b6f3d35 100644
-- a/hellnet/tech/recursive-filelinks
++ b/hellnet/tech/recursive-filelinks
@@ -1,7 +1,7 @@
h1. Extent-based Recursive filelinks

Filelink is a list of hashes of chunks of file. As Hellnet has limited chunk size[1] and filelinks have to be files too, and we can't use filelinks on filelinks, Hellnet has extent-based filelinks.

If chunk size is 256, 256 kb, we can fit 4096 hashes in it. That's 1.07 Gb of data. If file needs more than 4095 hashes to describe it, we make another filelink chunk, fill it with the rest and append hash of that chunk to first one. Can be recursively repeated.

fn1. Currently 256 kbytes
\ No newline at end of file

By Voker57 on 2009-06-22 19:28:24 +0400 Powered by bitcheese wiki engine