Structureswift-nio 2.72.0NIOPosix
Port
A vsock port number.
VsockAddress.swift:114struct Port
The vsock port number differentiates between multiple services running on a single machine.
Other members in extension
Types
struct ContextID
A vsock Context Identifier (CID).
Type members
init(cid: ContextID, port: Port
) Creates a new vsock address.
Instance members
var cid: ContextID
The context ID associated with the address.
var description: String
var port: Port
The port associated with the address.
func withSockAddr<T>((UnsafePointer<sockaddr>, Int) throws -> T
) rethrows -> T
Citizens in NIOPosix
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Type members
init(Int
) init(integerLiteral: UInt32
) init(rawValue: UInt32
) static let any: `Self`
Used to bind to any port number.
Instance members
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.