One Logo Pool Ball
Network · IOS API REFERENCE

NWProtocolTCP.Metadata

class · iOS 12.0+ · SDK 27.1

class Metadata

Access TCP metadata using NWConnection.metadata(protocolDefinition: NWProtocolTCP.definition) or in received ContentContext

Members (3)

get · iOS 12.0+

availableSendBuffer

TypeScript
get availableSendBuffer(): number
Swift declaration
var availableSendBuffer: UInt32 { get }

Access the current number of bytes in TCP's send buffer (SO_NWRITE).

get · iOS 12.0+

availableReceiveBuffer

TypeScript
get availableReceiveBuffer(): number
Swift declaration
var availableReceiveBuffer: UInt32 { get }

Access the current number of bytes in TCP's receive buffer (SO_NREAD).

method · iOS 27.0+

setMaximumPacingRateBytesPerSecond

TypeScript
setMaximumPacingRateBytesPerSecond(maximumPacingRateBytesPerSecond?: (number) | null): void
Swift declaration
func setMaximumPacingRateBytesPerSecond(_ maximumPacingRateBytesPerSecond: UInt64?)

Set the maximum pacing rate for this TCP connection, in bytes per second. TCP pacing spreads out packet transmission to avoid bursts and reduce network congestion. The actual on-wire rate is the minimum of this cap and the rate computed from the congestion window and RTT, so this value never increases throughput above what congestion control allows. Pass `nil` to disable pacing on this connection — the connection will send without pacing (subject only to congestion control). - Parameter maximumPacingRateBytesPerSecond: Maximum pacing rate in bytes per second, or `nil` to disable pacing.

Skipped declarations

No declarations were skipped in this snapshot.

All Network types →