HvSocketCreateVSockServiceId Method

Maps the port number of a Linux VSock socket to a service ID for a Hyper-V socket.

Definition

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

Parameters

port  Int32
The VSock port number. Valid values are between 0 and 0x7fffffff.

Return Value

Guid
The mapped service ID.

Exceptions

ArgumentOutOfRangeExceptionport is less than 0.

See Also