You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* gossip: wire protocol
* gossip: peer set and wire protocol utilities revised
* gossip: msg cache w/expiration
* data structures for gossip: fixes and unittest
* changes due to pr 1 feedback
* one more fix due to PR requests
* one more try against ci
* gossip part 2
* gossip: pr1 reflects pr2
* gossip: pr1 reflects pr2
* Fix/gossip pr 1 (#46)
* Fix build for macos
* Improvements
* deprecated logic removed
* gossip: cleanups and renamings
* gossip: renmings
* gossip serialization method signature changed
* gossip: serialization signature changed
* Gossip pr 1 (#37)
* gossip: wire protocol
* gossip: peer set and wire protocol utilities revised
* gossip: msg cache w/expiration
* data structures for gossip: fixes and unittest
* changes due to pr 1 feedback
* one more fix due to PR requests
* one more try against ci
* gossip: pr1 reflects pr2
* gossip: pr1 reflects pr2
* Fix/gossip pr 1 (#46)
* Fix build for macos
* Improvements
* deprecated logic removed
* gossip: cleanups and renamings
* gossip: renmings
* gossip serialization method signature changed
Co-authored-by: kamilsa <[email protected]>
* refactorings
* typo fixed
* minor fixes
* +gossip-example
* +gossip-example
* fixes and example
* debug things
* gossip: subscriptions test and bugfixes
* dont forward messages back to their origins
* injectors made parametric (to build examples)
* gossip: fixes
* more fixes in pub-sub
* fixes in gossip example
* sublogger can set new instance name
* message cache fix exp times
* chat example
* logs and traces added for debug purposes
* README.md for gossip examples
* small patch for older stdlibs support
* more logs and traces
* more logs and traces
* new inbound protocol streams are allowed for all connections
* streams issues fixed
* gossip injector fixed
* gossip new example
* boost_program_options in dependencies
* scheduler with config param (strong type for injector)
* tests fixed due to recent changes
* cleanup in yamux and dialer-listener hotfixes
* hotfixes to yamux and dialer
* yamux changes
* parametrized netork and host injectors
* streams regression test
* patched mplex connections/streams so that streams get notified about EOF
Co-authored-by: kamilsa <[email protected]>
*`gossip_chat_example.cpp` shows how to use Gossip pub-sub
5
+
*`utility.cpp` and `console_async_reader.*` contain common things related to examples
6
+
7
+
## Launching
8
+
9
+
### gossip_chat_example
10
+
11
+
`./gossip_chat_example -p PORT [-t TOPIC] [-r REMOTE] [-l LOG_LEVEL]`
12
+
13
+
Longer strings for options are available, respectively `--port`, `--topic`, `--remote`, and `--log`
14
+
15
+
*`PORT` : port the local node is going to listen to
16
+
*`TOPIC` : topic name for chat messages
17
+
*`REMOTE` : p2p URI of bootstrap peer to connect to
18
+
*`LOG_LEVEL`: verbosity level of log output, possible values are `d`, `i`, `w`, or `e` (self explained)
19
+
20
+
After launching, you may type messages into console, which are being published into the topic.
21
+
Log messages are printed into`stdout`. Chat output is written to `stderr`. So logs may be redirected if needed
22
+
23
+
Explanation by example: `./gossip_chat_example --log=d -p 1300 -r /ip4/192.168.0.104/tcp/10000/p2p/12D3KooWLm1CRdj8DBhwAfMGEcNGCEm3ZWxL6jD6uC6BizqXGcP6` means that
24
+
25
+
* Logs will be printed with `debug` verbosity level
26
+
* local node will listen to port 1300 and try to connect to remote peer given by uri
0 commit comments