Module io

Module io 

Source
Expand description

Network I/O module for OpenIGTLink communication

Provides client and server implementations for OpenIGTLink connections over both TCP (reliable) and UDP (low-latency) transports.

§Client Creation

Use ClientBuilder for type-safe client construction:

use openigtlink_rust::io::builder::ClientBuilder;

// TCP async client
let client = ClientBuilder::new()
    .tcp("127.0.0.1:18944")
    .async_mode()
    .build()
    .await?;

Re-exports§

pub use builder::ClientBuilder;
pub use reconnect::ReconnectConfig;
pub use unified_client::AsyncIgtlClient;
pub use unified_client::SyncIgtlClient;
pub use async_server::AsyncIgtlConnection;
pub use async_server::AsyncIgtlConnectionReader;
pub use async_server::AsyncIgtlConnectionWriter;
pub use async_server::AsyncIgtlServer;
pub use server::IgtlConnection;
pub use server::IgtlServer;
pub use tls_server::TlsIgtlConnection;
pub use tls_server::TlsIgtlServer;
pub use udp::UdpClient;
pub use udp::UdpServer;

Modules§

async_server
Asynchronous OpenIGTLink server implementation
builder
Type-state builder pattern for OpenIGTLink clients
reconnect
Automatic reconnection configuration
server
Synchronous OpenIGTLink server implementation
tls_server
TLS-encrypted OpenIGTLink server implementation
udp
UDP-based OpenIGTLink communication
unified_async_client
Unified async client with optional TLS and reconnection
unified_client
Unified client types for OpenIGTLink