This is preliminary documentation and is subject to change.

HvSocketEndPoint Class

Represents a Hyper-V socket (hvsocket) endpoint as a VM ID and a service ID.

Definition

Namespace: Ookii.VmSockets
Assembly: Ookii.VmSockets (in Ookii.VmSockets.dll) Version: 1.0.0-preview+f8696045525769a78b927dc73288e964721869c8
C#
public class HvSocketEndPoint : EndPoint
Inheritance
Object    EndPoint    HvSocketEndPoint

Remarks

  Important

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

Hyper-V sockets can be used between a host and a guest virtual machine or a silo. It provides interoperability with VSock sockets for guest partitions running Linux.

Constructors

HvSocketEndPoint(Guid, Guid) Initializes a new instance of the HvSocketEndPoint class.
HvSocketEndPoint(Guid, Int32) Initializes a new instance of the HvSocketEndPoint class using a VSock port number.

Properties

AddressFamily Gets the address family to which the endpoint belongs.
(Overrides EndPointAddressFamily)
ServiceId Gets or sets the service ID.
VmId Gets or sets the virtual machine ID.

Methods

Create Creates an EndPoint instance from a SocketAddress instance.
(Overrides EndPointCreate(SocketAddress))
EqualsDetermines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Serialize Serializes endpoint information into a SocketAddress instance.
(Overrides EndPointSerialize)
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)

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