This is preliminary documentation and is subject to change.

VSockEndPoint Class

Represents a Linux VSock socket endpoint as a context ID and a port.

Definition

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

Remarks

  Important

The functionality defined in this class is only available on Linux kernels that support the AF_VSOCK address family.

  Important

Due to limitations in the Sockets API on the Linux version of .Net, this class is only available for .Net 8.0 and later.

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

Constructors

VSockEndPoint Initializes a new instance of the VSockEndPoint class.

Properties

AddressFamily Gets the address family to which the endpoint belongs.
(Overrides EndPointAddressFamily)
ContextId Gets or sets the context ID identifying the destination.
Port Gets or sets the port number.
ToHost Gets or sets a value which indicates that VSock packets need to always be forwarded to the host.

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