From 64be94545db495faa629cae4eaa936f3ecd44198 Mon Sep 17 00:00:00 2001 From: jxw Date: Wed, 12 Mar 2025 10:15:58 +0000 Subject: [PATCH] =?UTF-8?q?tls=20socket=E6=94=AF=E6=8C=81getSocketFd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jxw --- api/@ohos.net.socket.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/@ohos.net.socket.d.ts b/api/@ohos.net.socket.d.ts index c2d0ad53e0..6e06d196a7 100644 --- a/api/@ohos.net.socket.d.ts +++ b/api/@ohos.net.socket.d.ts @@ -3186,6 +3186,14 @@ declare namespace socket { */ getSignatureAlgorithms(): Promise>; + /** + * Obtains the file descriptor of the TLSSocket connection. + * @returns { Promise } The promise returns the file descriptor of the TLSSocket connection. + * @syscap SystemCapability.Communication.NetStack + * @since 16 + */ + getSocketFd(): Promise; + /** * Sets up a connection to the specified IP address and port number. * Only TCP is supported. -- Gitee