Creating a Distributed Programming Project
A distributed programming project uses a C/S architecture to implement a high-bandwidth and low-latency network based on the Hyper Communication Framework.
Procedure
- Click
in the shortcut menu bar on the left pane or click
next to Development Assistant. The Kunpeng Application Projects page is displayed. See Figure 1.Figure 1 Kunpeng Application Projects
- Click Distributed Application. On the Distributed Application tab page that is displayed, set Project Type to Template project or Empty project. Select a sample project and set the other parameters. See Figure 2 and Figure 3.
When an empty project is created, a directory of the corresponding project is also created, with the file content being empty.
- Click Next to configure the target node. You can use an existing server or add a new server. To add a server, enter the IP address, SSH port, user name, password, and storage directory. If you select Configure later, no SDKs will be deployed by default. See Figure 4.Figure 4 Configuring the target node
When configuring the new target node, ensure that the node is running on a physical or virtual machine and runs openEuler 20.03 LTS SP1, openEuler 22.03 LTS SP1, or CentOS 7.6 in the Kunpeng architecture, and that you have administrator permissions for the node.
- Determine whether to deploy the SDK. If you select Yes, select Online deployment or Offline deployment. See Figure 5. Click Create.Figure 5 Deploying the SDK
Table 1 Parameters for creating a distributed programming project Parameter
Description
Project Type
The options are:
- Template project
- Distributed programming
- Empty project
Project Name
The default project name is xxx_ProjectN, which can be modified as required.
Name of the project to be created.
NOTE:- N is an integer starting from 1 in ascending order.
- The project name can contain 1 to 64 characters, including only letters, digits, periods (.), hyphens (-), plus signs (+), parentheses (), and underscores (_). It cannot start with a period (.).
Project Location
The default project location is C:\Users\username\KunpengProject, which can be modified as required.
Storage path of the project to be created.
Deploy Server
- Existing
- New
- Configure later
NOTE:The new server will be added to the target server management.
Node Properties
The options are:
- Client node
- Server node
IP Address
IP address of the target node for subsequent operations.
SSH Port
SSH port number of the target node.
User Name
Account of the target node for subsequent operations.
Password
Password of the target node user.
Remember password
If you select this option, the password of the current server user will be remembered.
Storage Directory
Storage directory on the target node.
NOTE:The tool reads and writes the content in the storage directory. To avoid data loss, you are advised to use an empty directory.
Deploy SDK
Select an SDK deployment method.
- Online deployment
- kunpeng-hcom
- kunpeng-hcom-devel
- Offline deployment
- kunpeng-hcom
- kunpeng-hcom-devel
NOTE:
- If you select Online deployment, the server must be connected to the Internet. In an isolated network environment, you need to use a proxy to access the Internet. For details, see Configuring a Proxy.
- If you select Offline deployment, the SDK is imported from the local host. Download the SDK to the local host and upload it.
- Template project
- During project creation, the corresponding module content is verified. You can click Terminate Configuration on the verification page to stop the current verification. If the verification is successful, the module content on the right is displayed in green. If the verification fails, the content is displayed in red.Figure 6 Terminating configuration
Figure 7 Verification success on the client node
Figure 8 Verification success on the server node
Figure 9 Verification failure
- If the parameters fail to be set, check the network connection and reconfigure the parameters.
- If the verification fails in online SDK deployment mode, click Retry. If the verification fails in offline SDK deployment mode, click Retry, or click reselect and upload to upload the SDK and perform another verification.
- After the project is created, click Open Project to open it in the current window.Figure 10 Distributed programming
After the project is created, you can compile, run, and debug the server application using the Compiler and Debugger. Before running and debugging the client application, you need to manually start the server application on the server. For details, see the README file in the src folder of the project.
- If the distributed application project fails to be created, click Reconfigure.Figure 11 Reconfigure
Navigation Back
- When configuring parameters, you can click Kunpeng Application Projects in the upper left corner of the page. The Leave dialog box is displayed. Clicking OK will clear related configurations.
Figure 12 Leave dialog box when setting parameters
- When creating a project, you can click Kunpeng Application Projects in the upper left corner of the page. The Leave dialog box is displayed. Clicking OK will terminate the configuration.
Figure 13 Leave dialog box when creating a project

