simple_node.rs 287 B

123456789101112131415
  1. use fleck::prelude::*;
  2. fn main() {
  3. pretty_env_logger::init_timed();
  4. let fleck = fleck::Fleck::new();
  5. fleck.bind_udp_socket(3535, None);
  6. /*fleck.services().with_service(|node: &fleck_core::Nodes| {
  7. node.self_node().gen_keypair();
  8. });*/
  9. fleck.run();
  10. }