Skip to content

Network iOS xcode14.0 beta3

Manuel de la Pena edited this page Sep 1, 2022 · 3 revisions

#Network.framework https://github.com/xamarin/xamarin-macios/pull/15841

diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h	2022-06-17 14:26:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h	2022-06-30 21:10:08.000000000 -0500
@@ -178,6 +178,25 @@
 nw_ethernet_channel_set_queue(nw_ethernet_channel_t ethernet_channel, dispatch_queue_t queue);
 
 /*!
+ * @function nw_ethernet_channel_get_maximum_payload_size
+ *
+ * @abstract
+ *		Returns the maximum payload size that can be written
+ *		on the channel. Any payloads written must be less than
+ *		or equal to this size.  Payloads exceeding this size will be
+ *		dropped by 'nw_ethernet_channel_send()'.
+ *
+ * @param ethernet_channel
+ *		The ethernet_channel object.
+ *
+ * @result
+ *		Returns a payload size based on the current MTU of the channel.
+ */
+API_AVAILABLE(macos(13.0)) API_UNAVAILABLE(ios, watchos, tvos)
+uint32_t
+nw_ethernet_channel_get_maximum_payload_size(nw_ethernet_channel_t ethernet_channel);
+
+/*!
  * @function nw_ethernet_channel_start
  *
  * @abstract
@@ -297,7 +316,10 @@
  *		An Ethernet payload to send.
  *
  * @param vlan_tag
- *      The vlan tag of the frame, 0 if there is no vlan tag.
+ *      The vlan tag of the frame.  If vlan_tag is specified, the 802.1Q tag will be included.
+ *      TPID will be set to 0x8100 followed by the specified 16-bit vlan_tag (only the highest
+ *      3-bit class of service field is supported.  The remaining 13 bits must be set to zero).
+ *      Pass 0 to omit the vlan tag for this frame.
  *
  * @param remote_address
  *		Remote Ethernet address for this Ethernet frame.  This is a required parameter.
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path_monitor.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path_monitor.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path_monitor.h	2022-06-17 10:25:13.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/path_monitor.h	2022-06-30 21:10:08.000000000 -0500
@@ -75,6 +75,23 @@
 nw_path_monitor_create_with_type(nw_interface_type_t required_interface_type);
 
 /*!
+ * @function nw_path_monitor_create_for_ethernet_channel
+ *
+ * @abstract
+ *		Create a path monitor that enumerates all interfaces that support
+ *		Ethernet channel.
+ *
+ * @result
+ *		Returns an allocated nw_path_monitor_t object on success.
+ *		Callers are responsible for deallocating using nw_release(obj) or [obj release].
+ *		These objects support ARC.
+ *		Returns NULL on failure.
+ */
+API_AVAILABLE(macos(13.0)) API_UNAVAILABLE(ios, watchos, tvos)
+NW_RETURNS_RETAINED nw_path_monitor_t
+nw_path_monitor_create_for_ethernet_channel(void);
+
+/*!
  * @function nw_path_monitor_prohibit_interface_type
  *
  * @abstract
diff -ruN /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ws_options.h /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ws_options.h
--- /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ws_options.h	2022-06-17 13:30:01.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Network.framework/Headers/ws_options.h	2022-06-30 08:28:50.000000000 -0500
@@ -266,7 +266,9 @@
  *
  * @abstract
  *		Set whether the WebSocket connection should automatically reply to all
- *		incoming pings.
+ *		incoming pings. If set to true, the WebSocket protocol will automatically
+ *		reply to incoming pings and will deliver the pings to receive requests
+ *		on the connection.
  *
  * @param options
  *		The WebSocket protocol options object.
Clone this wiki locally