Communication method for achieving real-time two-way assistance between C++ module and Python module
A communication method and inter-module technology, applied in inter-program communication, instruments, multi-program devices, etc., can solve problems such as inability to unilaterally and directly call C++ function modules, increase workload, and unfavorable application development, etc., to achieve Improve development efficiency, program stability, and avoid extra work
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] In a kind of communication method that realizes real-time two-way assistance between C++ and Python modules in this embodiment, the C++ module is set as the server, and the Python module is set as the client, and the socket instance is all created inside the two, and the communication between them It is realized through socket, and the status monitoring between the two is realized through a daemon process. The workflow of the server, client and daemon process will be described in detail below.
[0041] Server:
[0042] That is, the C++ module only creates one socket, and the receiving and sending of commands are located in the main thread, and the processing of commands is also located in the main thread. The socket creation and related processing steps of the server are as follows:
[0043] 1. Create a socket instance, bind the port number, bind the processing function function1, and set the processing flag as the access flag, that is, when the Python module requests acc...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com