HvSocket Class

Provides constants and helper methods for working with Hyper-V sockets.

Definition

Namespace: Ookii.VmSockets
Assembly: Ookii.VmSockets (in Ookii.VmSockets.dll) Version: 1.0.0+087207370c685ccfa01d10830e6db3af2770247a
C#
public static class HvSocket
Inheritance
Object    HvSocket

Remarks

  Important

The functionality defined in this class is only available on Windows 10 and later versions.

Methods

Create Creates a new Hyper-V socket.
CreateVSockServiceId Maps the port number of a Linux VSock socket to a service ID for a Hyper-V socket.
GetConnectedSuspend Gets the socket connected suspend option.
GetConnectTimeout Gets the connection timeout for the socket.
GetContainerPassthru Gets the container pass-through socket option.
GetHighVtl Gets the socket high VTL option.
SetConnectedSuspend Sets the socket connected suspend option.
SetConnectTimeout Sets the connection timeout for the socket.
SetContainerPassthru Sets the container pass-through socket option.
SetHighVtl Sets the socket high VTL option.

Fields

AddressFamily The address family for Hyper-V sockets, also known as AF_HYPERV.
RawProtocol The protocol type that must be used when creating Hyper-V sockets.
SocketAddressSize The size, in bytes, of the SOCKADDR_HV structure, used to describe Hyper-V socket addresses.
VSockTemplate Template to facilitate a mapping between the service ID of a Hyper-V socket and the port number of a Linux VSock socket.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also