Structureswift-nio 2.72.0NIOCore
AddressedEnvelope
A data structure for processing addressed datagrams, such as those used by UDP.
AddressedEnvelope.swift:20struct AddressedEnvelope<DataType>
The AddressedEnvelope is used extensively on DatagramChannel
s in order to keep track of source or destination address metadata: that is, where some data came from or where it is going.
See also
struct NIOPacketInfo
enum NIOExplicitCongestionNotificationState
Possible Explicit Congestion Notification States
Citizens in NIOCore
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
Types
struct Metadata
Any metadata associated with an
AddressedEnvelope
Type members
init(remoteAddress: SocketAddress, data: DataType
) init(remoteAddress: SocketAddress, data: DataType, metadata: Metadata?
)
Instance members
var data: DataType
var description: String
var metadata: Metadata?
Any metadata associated with this
AddressedEnvelope
var remoteAddress: SocketAddress
Citizens in NIOCore
where DataType:Hashable
Conformances
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Citizens in NIOCore
where DataType:Equatable
Conformances
protocol Equatable
A type that can be compared for value equality.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Citizens in NIOCore
where DataType:Sendable
Conformances
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.