Skip to content

Network iOS xcode27.0 b1

Alex Soto edited this page Jun 9, 2026 · 1 revision

#Network.framework

diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path.h	2026-04-18 21:31:30
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path.h	2026-06-02 23:48:14
@@ -2,7 +2,7 @@
 //  path.h
 //  Network
 //
-//  Copyright (c) 2017-2025 Apple Inc. All rights reserved.
+//  Copyright (c) 2017-2026 Apple Inc. All rights reserved.
 //
 
 #ifndef __NW_PATH_H__
@@ -352,7 +352,7 @@
  *		capabilities of the network. Do not use this value to gate connection attempts or to override
  *		adjustments that would be made based on actual network performance.
  */
-typedef enum {
+typedef enum: uint8_t {
 	/*! @const nw_link_quality_unknown No link quality measurement is available */
 	nw_link_quality_unknown = 0,
 	/*! @const nw_link_quality_minimal Link quality is minimal */
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/tcp_options.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/tcp_options.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/tcp_options.h	2026-04-18 21:07:01
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/tcp_options.h	2026-06-04 00:14:57
@@ -410,6 +410,31 @@
 uint32_t
 nw_tcp_get_available_send_buffer(nw_protocol_metadata_t metadata);
 
+/*!
+ * @function nw_tcp_set_max_pacing_rate
+ *
+ * @abstract
+ *		Set the maximum pacing rate for TCP transmission in bytes per second.
+ *		TCP pacing spreads out packet transmission to avoid bursts and reduce
+ *		network congestion. The actual pacing rate used will be the minimum
+ *		of this value and the rate computed from cwnd/RTT.
+ *
+ *		A value of 0 or UINT64_MAX means unlimited (disables pacing).
+ *
+ * @param metadata
+ *		A TCP protocol metadata object from an established connection.
+ *
+ * @param max_pacing_rate
+ *		Maximum pacing rate in bytes per second.
+ *
+ * @result
+ *		Returns 0 on success, or an error code on failure.
+ */
+API_AVAILABLE(macos(27.0), ios(27.0), watchos(27.0), tvos(27.0), visionos(27.0))
+int
+nw_tcp_set_max_pacing_rate(nw_protocol_metadata_t metadata,
+						   uint64_t max_pacing_rate);
+
 NW_ASSUME_NONNULL_END
 
 __END_DECLS

Clone this wiki locally