83 |
A WWW browser can be used to check what certain peer has published. However, |
A WWW browser can be used to check what certain peer has published. However, |
84 |
to retrieve any block through the P2P system, a special gateway HTTP server |
to retrieve any block through the P2P system, a special gateway HTTP server |
85 |
can be started with peer option "-gw 5555", where 5555 is the configurable |
can be started with peer option "-gw 5555", where 5555 is the configurable |
86 |
port number. |
port number (TCP). |
87 |
|
|
88 |
|
|
89 |
Usage |
Usage |
102 |
make import POOL=../test-pool CT=text/plain FILES=../files/*.txt |
make import POOL=../test-pool CT=text/plain FILES=../files/*.txt |
103 |
ls ../test-pool |
ls ../test-pool |
104 |
|
|
105 |
Example of starting the gateway for http clients: |
Example of serving a local pool for http clients: |
106 |
make http-gateway POOL=../test-pool |
make http-gateway POOL=../test-pool |
107 |
|
|
108 |
|
|
115 |
|
|
116 |
or, start a remote peer that can fetch the blocks: |
or, start a remote peer that can fetch the blocks: |
117 |
make peer ARGS="-gw 5000 -port 2000 fishy.it.jyu.fi:2000" |
make peer ARGS="-gw 5000 -port 2000 fishy.it.jyu.fi:2000" |
|
|
|
|
Notice, that the peer gateways can only list blocks that have already been |
|
|
retrieved through them. So take the block id from http-gateway, or |
|
|
from filenames in ../test-pool. |
|