VSockGetPeerHostVmId Method

Gets the host-specific VM ID of the peer.

Definition

Namespace: Ookii.VmSockets
Assembly: Ookii.VmSockets (in Ookii.VmSockets.dll) Version: 1.0.0+087207370c685ccfa01d10830e6db3af2770247a
C#
public static int GetPeerHostVmId(
	Socket socket
)

Parameters

socket  Socket
A VSock socket.

Return Value

Int32
The peer VM ID.

Remarks

This option is only available for hypervisor endpoints.

The behavior of this function is undefined if the socket is not a VSock socket.

Exceptions

ArgumentNullExceptionsocket is .
ObjectDisposedException The Socket object has been closed.
SocketException An error occurred when attempting to access the socket.

See Also