123456789101112131415161718192021222324 |
- #include <stdlib.h>
- #include "start.hpp"
- // Once all the networking is set up, start doing whatever we were asked
- // to do on the command line
- void start(NetIO &netio, char **args)
- {
- printf("Reading\n");
- for (nodenum_t node_num = 0; node_num < netio.num_nodes; ++node_num) {
- if (node_num == netio.me) continue;
- NodeIO &node = netio.node(node_num);
- node.recv_commands(
- // error_cb
- [](boost::system::error_code) {
- printf("Error\n");
- },
- // epoch_cb
- [](uint32_t epoch) {
- printf("Epoch %u\n", epoch);
- });
- }
- }
|