VSockGetLocalCid Method

Gets the CID of the local machine.

Definition

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

Return Value

Int32
The context ID.

Exceptions

UnauthorizedAccessException Retrieving the local context ID requires root privileges.
FileNotFoundException The /dev/vsock device was not found.
Win32Exception An error occurred retrieving the local CID.

See Also