From 3d792236133e4ff16decd95e91d5f04b4223bc7a Mon Sep 17 00:00:00 2001 From: Ryan <865833921@qq.com> Date: Mon, 12 May 2025 12:24:23 +0000 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_EN.md => README.en.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) rename README_EN.md => README.en.md (42%) diff --git a/README_EN.md b/README.en.md similarity index 42% rename from README_EN.md rename to README.en.md index 3a5574f..7723e12 100644 --- a/README_EN.md +++ b/README.en.md @@ -9,11 +9,11 @@ This sample uses HTTP download, RCP download, and Socket download as examples to ## How to Use -1.Open the server application and touch Initialize to initialize the server. -2.Open the client application and touch Socket Download to access the Socket Download page. -3.On the Socket Download page, touch Save to Gallery to download the video file. -4.On the HTTP Download page, touch Save to Gallery to download the video file. -5.On the RCP Download page, touch Save to Gallery to download the video file. +1. Open the server application and touch Initialize to initialize the server. +2. Open the client application and touch Socket Download to access the Socket Download page. +3. On the Socket Download page, touch Save to Gallery to download the video file. +4. On the HTTP Download page, touch Save to Gallery to download the video file. +5. On the RCP Download page, touch Save to Gallery to download the video file. ## Project Directory @@ -24,14 +24,14 @@ This sample uses HTTP download, RCP download, and Socket download as examples to ## How to Implement -1.Import the required socket module. -2.Create a TCP socket server connection. A TCPSocketServer object is returned. -3.Bind the local IP address and port, and listen for and accept TCP socket connections established over the socket. -4.Subscribe to connect events of the TCPSocketServer object to listen for client connection status changes. -5.Set up a connection between the client and the server. A TCPSocketConnection object is returned. -6.Subscribe to events of the TCPSocketConnection object, send data to the client through the TCPSocketConnection object, and save file data to Gallery. -7.Use requestInStream to complete HTTP download, and use SaveButton to save files to Gallery. -8.Use the get method to complete RCP download, and use SaveButton to save files to Gallery. +1. Import the required socket module. +2. Create a TCP socket server connection. A TCPSocketServer object is returned. +3. Bind the local IP address and port, and listen for and accept TCP socket connections established over the socket. +4. Subscribe to connect events of the TCPSocketServer object to listen for client connection status changes. +5. Set up a connection between the client and the server. A TCPSocketConnection object is returned. +6. Subscribe to events of the TCPSocketConnection object, send data to the client through the TCPSocketConnection object, and save file data to Gallery. +7. Use requestInStream to complete HTTP download, and use SaveButton to save files to Gallery. +8. Use the get method to complete RCP download, and use SaveButton to save files to Gallery. ## Permissions @@ -45,7 +45,7 @@ N/A ## Constraints -1.This sample is only supported on Huawei phones with standard systems. -2.The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. -3.The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. -4.The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release SDK or later. \ No newline at end of file +1. This sample is only supported on Huawei phones with standard systems. +2. The HarmonyOS version must be HarmonyOS 5.0.0 Release or later. +3. The DevEco Studio version must be DevEco Studio 5.0.0 Release or later. +4. The HarmonyOS SDK version must be HarmonyOS 5.0.0 Release SDK or later. \ No newline at end of file -- Gitee