aboutsummaryrefslogtreecommitdiff
path: root/src/device/socket/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/socket/mod.rs')
-rw-r--r--src/device/socket/mod.rs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/device/socket/mod.rs b/src/device/socket/mod.rs
index acc7def..8d2de2b 100644
--- a/src/device/socket/mod.rs
+++ b/src/device/socket/mod.rs
@@ -2,25 +2,21 @@
//!
//! To use the driver, you should first create a [`VirtIOSocket`] instance with your VirtIO
//! transport, and then create a [`VsockConnectionManager`] wrapping it to keep track of
-//! connections. If you only want to have a single outgoing vsock connection at once, you can use
-//! [`SingleConnectionManager`] for a slightly simpler interface.
+//! connections. If you want to manage connections yourself you can use the `VirtIOSocket` directly
+//! for a lower-level interface.
//!
//! See [`VsockConnectionManager`] for a usage example.
-mod error;
#[cfg(feature = "alloc")]
-mod multiconnectionmanager;
+mod connectionmanager;
+mod error;
mod protocol;
#[cfg(feature = "alloc")]
-mod singleconnectionmanager;
-#[cfg(feature = "alloc")]
mod vsock;
-pub use error::SocketError;
#[cfg(feature = "alloc")]
-pub use multiconnectionmanager::VsockConnectionManager;
+pub use connectionmanager::VsockConnectionManager;
+pub use error::SocketError;
pub use protocol::{VsockAddr, VMADDR_CID_HOST};
#[cfg(feature = "alloc")]
-pub use singleconnectionmanager::SingleConnectionManager;
-#[cfg(feature = "alloc")]
pub use vsock::{DisconnectReason, VirtIOSocket, VsockEvent, VsockEventType};