Commit Graph

12 Commits

Author SHA1 Message Date
Ian Davis
76e1ce667e Fix up example readmes, submodules and gitignore 2021-05-05 11:32:17 +01:00
Ian Davis
d340059a80 chore: bring examples back into repository 2021-05-05 10:57:48 +01:00
Steven Allen
0ee6c5a218 extract libp2p examples to go-libp2p-examples
Repo: https://github.com/libp2p/go-lib2p-examples
2018-07-27 11:41:28 -07:00
Steven Allen
00cf69eb49 examples/echo: recommend -secio
When not using -secio, this command prints a warning. This confuses users so we
should just tell users to use it in the instructions.

fixes #179
2017-08-30 17:45:45 -07:00
David Dias
a8926ed732 docs(examples): small refresh to the echo example 2017-08-19 18:12:11 +02: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
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