Function vsock::get_local_cid
source · pub fn get_local_cid() -> Result<u32>
Expand description
Gets the CID of the local machine.
Note that when calling VsockListener::bind
, you should generally use VMADDR_CID_ANY
instead, and for making a loopback connection you should use VMADDR_CID_LOCAL
.