pub async fn dial(address: &AgentAddress, port: u32) -> Result<Socket>Expand description
Dial the kata-agent’s ttrpc socket and wrap its connected stream.
For AgentAddress::HybridVsock, performs the hybrid-vsock handshake
(connect <port>\n → response line containing OK) over the host Unix
socket, exactly as upstream’s hybrid_vsock::connect_helper does. For
AgentAddress::Vsock, opens a real AF_VSOCK connection via ttrpc’s
async transport.