Skip to content

Commit

Permalink
[CFNetwork] Add Xcode13 beta 1 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque committed Jun 17, 2021
1 parent aed7923 commit de05ce8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CFNetwork/CFHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ namespace CFNetwork {
namespace CoreServices {
#endif

// used by CFStream.cs (only?)
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the new Network framework instead.")]
class CFHost : INativeObject, IDisposable {
internal IntPtr handle;

Expand Down
10 changes: 10 additions & 0 deletions src/CoreFoundation/CFStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ internal extern static void CFStreamCreatePairWithSocketToCFHost (
/* CFReadStreamRef __nullable * __nullable */ out IntPtr readStream,
/* CFWriteStreamRef __nullable * __nullable */ out IntPtr writeStream);

[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the new Network framework instead.")]
public static void CreatePairWithSocketToHost (IPEndPoint endpoint,
out CFReadStream readStream,
out CFWriteStream writeStream)
Expand All @@ -222,6 +227,11 @@ internal extern static void CFStreamCreatePairWithSocketToHost (/* CFAllocatorRe
/* CFStringRef */ IntPtr host, /* UInt32 */ int port,
/* CFReadStreamRef* */ out IntPtr readStream, /* CFWriteStreamRef* */ out IntPtr writeStream);

[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the new Network framework instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the new Network framework instead.")]
public static void CreatePairWithSocketToHost (string host, int port,
out CFReadStream readStream,
out CFWriteStream writeStream)
Expand Down

0 comments on commit de05ce8

Please sign in to comment.