From 78bd225ac9b7abafe0348079c5e35f72525ed4a2 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 19 Sep 2022 22:53:21 +0000 Subject: [PATCH] Add a note that sendMessage and readMessage are only available on macOS and Linux. Change-Id: I74d6a373f914e7c9e9924425df9c87b952ee9c8e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257420 Reviewed-by: Alexander Aprelev Commit-Queue: Brian Quinlan --- sdk/lib/io/socket.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart index 0f76121466a..7087c659be5 100644 --- a/sdk/lib/io/socket.dart +++ b/sdk/lib/io/socket.dart @@ -599,6 +599,8 @@ abstract class RawSocket implements Stream { /// Returns `null` if no data is available. /// /// Unsupported by [RawSecureSocket]. + /// + /// Unsupported on Android, Fuchsia, Windows. @Since("2.15") SocketMessage? readMessage([int? count]); @@ -638,6 +640,8 @@ abstract class RawSocket implements Stream { /// Throws an [OSError] if message could not be sent out. /// /// Unsupported by [RawSecureSocket]. + /// + /// Unsupported on Android, Fuchsia, Windows. @Since("2.15") int sendMessage(List controlMessages, List data, [int offset = 0, int? count]);