mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-26 12:26:12 +00:00
Boog900
159c8a3b48
* levin: fix fragmented messages & use bitflags * levin: add a method to fragment a message * levin: add tests for fragmented messages and fix issues * fix docs * tests: don't include bytes length * levin: add support for sending fragmented / dummy messages * fmt * add fragmented handshake tests. * fix handshake detection when fragmented and alt (non-monero) protocol info * add tracing logs * remove `already_built`, this was an old way I was thinking of sending raw buckets * clippy * clippy 2 * Update net/levin/src/message.rs Co-authored-by: hinto-janai <hinto.janai@protonmail.com> * review comments * add timeout to tests * Update net/levin/src/header.rs Co-authored-by: hinto-janai <hinto.janai@protonmail.com> --------- Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
35 lines
1.1 KiB
Rust
35 lines
1.1 KiB
Rust
// Rust Levin Library
|
|
// Written in 2023 by
|
|
// Cuprate Contributors
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
// in the Software without restriction, including without limitation the rights
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
// furnished to do so, subject to the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included in all
|
|
// copies or substantial portions of the Software.
|
|
//
|
|
|
|
//! # Monero Wire
|
|
//!
|
|
//! A crate defining Monero network messages and network addresses,
|
|
//! built on top of the levin-cuprate crate.
|
|
//!
|
|
//! ## License
|
|
//!
|
|
//! This project is licensed under the MIT License.
|
|
|
|
pub mod network_address;
|
|
pub mod p2p;
|
|
|
|
pub use levin_cuprate::BucketError;
|
|
pub use network_address::{NetZone, NetworkAddress};
|
|
pub use p2p::*;
|
|
|
|
// re-export.
|
|
pub use levin_cuprate as levin;
|
|
|
|
pub type MoneroWireCodec = levin_cuprate::codec::LevinMessageCodec<Message>;
|