HvSocketCreate Method

Creates a new Hyper-V socket.

Definition

Namespace: Ookii.VmSockets
Assembly: Ookii.VmSockets (in Ookii.VmSockets.dll) Version: 1.0.0+087207370c685ccfa01d10830e6db3af2770247a
C#
public static Socket Create(
	SocketType type
)

Parameters

type  SocketType
One of the SocketType values.

Return Value

Socket
The Hyper-V socket.

Remarks

This method is equivalent to invoking the Socket(AddressFamily, SocketType, ProtocolType) constructor using the values of AddressFamily, type, and RawProtocol.

Exceptions

SocketExceptionThe socket could not be created.

See Also