# SocketCommunication **Repository Path**: laughing66/socket-communication ## Basic Information - **Project Name**: SocketCommunication - **Description**: 本示例通过Socket监听“127.0.0.1”实现跨进程通信。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2024-12-20 - **Last Updated**: 2024-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Cross-Process Communication by Listening to 127.0.0.1 Through Socket ## Overview This sample showcases cross-process communication by listening to 127.0.0.1 through socket. ## Preview ![](screenshots/device/SocketCommunication_EN.gif) ## How to Use 1. Open the server app and touch the **Initialize** button to initialize the server. 2. Open the client app and touch the **Connect to server** button to connect the client to the server. 3. Back on the server app, enter **123456** in the text box, and touch the send icon. 4. Return to the client app. The client receives the message from the server and displays it on the page. 5. On the client app, enter **456789** in the text box, and touch the send icon. 6. Return to the server app. The server app receives the message from the client and displays it on the page. ## Required Permissions **ohos.permission.INTERNET**: allows an app to access the Internet. ## Dependencies N/A ## Constraints 1. The sample app is supported only on Huawei phones running the standard system. 2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. 3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. 4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later.