Initializerswift-nio 2.81.0NIOPosix
init(cid:port:)
Creates a new vsock address.
init(cid: ContextID, port: Port)
Creates a new vsock address.
init(cid: ContextID, port: Port)
s8NIOPosix12VsockAddressV3cid4portA2C9ContextIDV_AC4PortVtcfc
What are these?1RPUL
import NIOPosix
struct VsockAddress
A vsock socket address.
struct ContextID
A vsock Context Identifier (CID).
struct Port
A vsock port number.
var cid: ContextID
The context ID associated with the address.
var description: String { get }
var port: Port
The port associated with the address.
func withSockAddr<T>(_ body: (UnsafePointer<sockaddr>, Int) throws -> T) rethrows -> T