Jeromy
5132c763e3
update example to make it easy to swap out stream muxer
2017-05-13 23:50:46 -07:00
Eric Tang
5b297b7160
typo
2017-04-26 13:17:21 -04:00
Hector Sanjuan
93802a4007
Add http proxy example
...
The example proxies http requests through a libp2p stream.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-30 11:14:19 +02:00
Hector Sanjuan
9706590149
Add example on how to use multicodecs to encode/decode data on a stream
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-22 18:12:18 +01:00
Hector Sanjuan
7e11c6008b
Docs: Improve echo example
...
* Do not use testutil to generate random keys and ids since this is a testing
dependency. Use crypto.GenerateKeyPair() instead.
* Echo full lines
* Improve output by telling the user what to run
* More code comments
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-22 18:12:18 +01:00
Jeromy Johnson
51ad894515
Merge pull request #181 from zippy/master
...
more imports cleanup, another dup.
2017-03-08 18:31:49 -08:00
Jeromy
ff5be0e63b
seed rand for generation of peer IDs in echo example
2017-03-06 23:23:48 -08:00
Eric Harris-Braun
0f0a36c62c
more imports cleanup, another dup.
2017-02-22 08:37:38 -05:00
Eric Harris-Braun
db919af600
imports cleanup, remove dup
2017-02-21 13:45:42 -05:00
Justin
a92558f752
More fixes
2016-11-24 20:54:47 +00:00
Justin
6ac1064a93
Fix port number of echo example
2016-11-24 16:43:52 +00:00
Justin
6e35a38789
More example fixes
2016-11-24 16:35:53 +00:00
Justin
b7fdb1f20b
Fix path
2016-11-24 16:24:21 +00:00
Hector Sanjuan
7c5d076dc6
Improve echo example:
...
* Extended explanations and links to relevant godocs
* Some renames (the host is not dummy, it's a basic)
* Use addAddr() and let NewStream open the connection
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-11-10 12:30:00 +01:00
Lars Gierth
f3812decb8
Rename hosts to echo example, remove justtcp example
2016-11-06 04:51:45 +01:00
Lars Gierth
4150c40ebf
Fix hosts example
2016-11-06 04:42:59 +01:00
Jeromy
7aced371c7
extract libp2p-swarm
2016-10-05 10:34:57 -07:00
Jeromy
70872ff663
update deps
2016-10-04 21:18:07 -07:00
Jeromy
1a53ad77b9
extract host interface
2016-10-04 16:16:24 -07:00
Jeromy
cea1fe131f
extract net interface and metrics
2016-10-04 13:56:20 -07:00
Jeromy
0f3ffb2d07
extract conn, addr-util, and testutil
2016-10-04 13:03:14 -07:00
Jeromy
4dd30d824b
switch to using stdlib context package
2016-10-03 11:00:00 -07:00
Jeromy
2eef5a702e
split tcp transports out of the base package
2016-09-25 04:51:27 -07:00
Jeromy
ab39c6f524
don't use ipfsaddr
2016-09-04 10:45:31 -07:00
Jeromy
f9cd03e625
allow hosts example to use secio
2016-09-04 10:37:32 -07:00
Jeromy
a56440a9c7
swarm: pass in stream muxer on construct
2016-09-04 08:13:36 -07:00
Jeromy
713d9a8798
examples: example using swarm and raw tcp (no muxing)
2016-09-03 10:43:31 -07:00
Jeromy
7a3394b1da
host: remember which protocols work for a given peer
2016-08-18 11:16:00 -07:00
Jeromy
8744e460da
update local import paths to reflect org change
2016-08-10 09:59:14 -07:00
Jeromy
c0e2b930e3
update multistream deps and fix code to work with new changes
2016-08-10 09:48:34 -07:00
Jeromy
5100dcec6e
update hosts example
2016-06-14 09:07:35 -07:00
Jeromy
dbbd9bb1e9
add hosts example
2016-06-12 14:01:54 -07:00