VSockEndPointCreate Method

Creates an EndPoint instance from a SocketAddress instance.

Definition

Namespace: Ookii.VmSockets
Assembly: Ookii.VmSockets (in Ookii.VmSockets.dll) Version: 1.0.0+087207370c685ccfa01d10830e6db3af2770247a
C#
public override EndPoint Create(
	SocketAddress socketAddress
)

Parameters

socketAddress  SocketAddress
The socket address that serves as the endpoint for a connection.

Return Value

EndPoint
A new EndPoint instance that is initialized from the specified SocketAddress instance.

Remarks

The socketAddress parameter must use the format of the sockaddr_vm structure.

Exceptions

ArgumentNullExceptionsocketAddress is .
ArgumentException The AddressFamily of socketAddress is not AF_HYPERV, or the size of socketAddress is less than VSockSocketAddressSize.

See Also