This is preliminary documentation and is subject to change.

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-preview+f8696045525769a78b927dc73288e964721869c8
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 connected suspend 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.
Broadcast Broadcast address for Hyper-V sockets.
Children Wildcard address for children.
Loopback Loopback address for Hyper-V sockets.
Parent Parent address for Hyper-V sockets.
RawProtocol The protocol type that must be used when creating Hyper-V sockets.
SiloHost Address of a silo's host partition.
SocketAddressSize The size 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.
Wildcard Wildcard address for Hyper-V sockets.

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