1#[macro_use]
12mod macros;
13mod congestion;
14mod constants;
15#[cfg(test)]
16mod e2e_tests;
17mod error;
18mod message;
19mod metrics;
20pub mod mtu;
21pub mod raw;
22mod recovery;
23mod rtte;
24mod seq_nr;
25mod socket;
26mod spawn_utils;
27mod stream;
28mod stream_dispatch;
29mod stream_rx;
30mod stream_tx;
31mod stream_tx_segments;
32#[cfg(test)]
33mod test_util;
34mod traits;
35mod utils;
36
37pub use error::{Error, Result};
38pub use librqbit_dualstack_sockets::BindDevice;
39pub use socket::{
40 CongestionConfig, CongestionControllerKind, SocketOpts, UtpSocket, UtpSocketUdp,
41 UtpSocketUdpOpts,
42};
43pub use stream::UtpStream;
44pub use stream_rx::UtpStreamReadHalf;
45pub use stream_tx::UtpStreamWriteHalf;
46pub use traits::Transport;
47
48type Payload = Vec<u8>;