Skip to content

Network macOS xcode13.0 beta5

Manuel de la Pena edited this page Aug 10, 2021 · 1 revision

#Network.framework

diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/Network.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/Network.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/Network.h	2021-07-18 17:55:01.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/Network.h	2021-08-02 02:08:14.000000000 -0400
@@ -13,6 +13,7 @@
 #define __NW_SET_INDIRECT__
 #endif // __NW_INDIRECT__
 
+#include <Network/nw_object.h>
 #include <Network/advertise_descriptor.h>
 #include <Network/browser.h>
 #include <Network/browse_result.h>
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/browser.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/browser.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/browser.h	2021-07-22 14:19:02.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/browser.h	2021-08-07 08:54:05.000000000 -0400
@@ -17,6 +17,8 @@
 #include <Network/browse_result.h>
 #include <Network/error.h>
 
+#include <dispatch/dispatch.h>
+
 NW_ASSUME_NONNULL_BEGIN
 
 __BEGIN_DECLS
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/connection_group.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/connection_group.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/connection_group.h	2021-07-22 04:35:53.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/connection_group.h	2021-08-09 03:22:08.000000000 -0400
@@ -382,6 +382,7 @@
  *		messages and backpressure.
  *		Any incoming messages from this remote endpoint which were saved from
  *		the receive handler may no longer be valid after a connection is returned.
+ *      An extracted connection must have a queue set and be started before it can be used.
  *
  * @param group
  *		The connection group object from which the context was received. If the context was
@@ -445,6 +446,7 @@
  *
  *      The connection can be re-inserted into the group later. Once reinserted, the connection group
  *      will handle subsequent messages from this remote endpoint.
+ *      An extracted connection must have a queue set and be started before it can be used.
  *
  * @param group
  *      The connection group object from which to extract a connection.
@@ -567,6 +569,7 @@
  *		1) Take over the ownership of the connection. In this case, the connection is used by the client to
  *		   send and receive data as any other connection would be used. The client may insert this
  *		   connection back into the connection group at a later point if so desired.
+ *		   The connection must have a queue set and be started before it can be used.
  *      2) If you want the connection group to handle this connection, simply insert this connection back into
  *         the connection group right away.
  *      3) If you don't want to accept this connection, simply cancel the connection.
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h	2021-07-22 14:22:01.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h	2021-08-07 08:54:05.000000000 -0400
@@ -33,6 +33,26 @@
 #endif // NW_GROUP_DESCRIPTOR_IMPL
 
 /*!
+ * @function nw_group_descriptor_create_multiplex
+ *
+ * @abstract
+ *		Creates a new group descriptor object based on an endpoint
+ *		to which communication will be established using a multiplexing protocol,
+ *		represented as an nw_endpoint containing the remote endpoint
+ *		to use for communication.
+ *
+ * @param remote_endpoint
+ *		An endpoint that can be used for communication over a multiplexing protocol.
+ *
+ * @result
+ *		An instantiated group descriptor object or nil if the specified
+ *		endpoint is not valid.
+ */
+API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+NW_RETURNS_RETAINED nw_group_descriptor_t
+nw_group_descriptor_create_multiplex(nw_endpoint_t remote_endpoint);
+
+/*!
  * @function nw_group_descriptor_create_multicast
  *
  * @abstract
Clone this wiki locally