arcbox-transport 0.1.6

Transport layer abstractions for ArcBox (Unix socket, vsock)
docs.rs failed to build arcbox-transport-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: arcbox-transport-0.0.1-alpha.1

arcbox-transport

Transport abstractions for ArcBox host/guest communication.

Overview

This crate provides:

  • UnixTransport for Unix domain sockets
  • VsockTransport for virtio-vsock endpoints (VsockAddr)
  • Transport / TransportListener traits for transport-agnostic code

Usage

use arcbox_transport::{Transport, UnixTransport, VsockTransport};
use arcbox_transport::vsock::VsockAddr;
use bytes::Bytes;

let mut unix = UnixTransport::new("/var/run/arcbox.sock");
unix.connect().await?;
unix.send(Bytes::from("hello")).await?;

let mut vsock = VsockTransport::new(VsockAddr::new(3, 1024));
vsock.connect().await?;
vsock.send(Bytes::from("ping")).await?;

Port Notes

  • 1024 is the guest agent RPC port used by arcbox-agent.
  • Additional ports are protocol-specific (for example guest Docker API proxying) and are configured by higher-level runtime components.

License

MIT OR Apache-2.0