Communication mode implementation method and electronic device

A technology for implementing methods and communication methods, which is applied in the field of communication and can solve problems such as inability to realize one-to-many communication

Active Publication Date: 2019-07-12
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a communication method and electronic equipment to solve or partially solve the current technical problem that the one-to-many communication cannot be realized under the OSX system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication mode implementation method and electronic device
  • Communication mode implementation method and electronic device
  • Communication mode implementation method and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to enable those skilled in the technical field to which the application belongs to understand the application more clearly, the technical solutions of the application will be described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0036] In the embodiment of the present invention, the Mach microkernel concept of the OSX system is adopted. By registering a virtual service name in the Mach microkernel and creating a listening port of the microkernel, and using the listening interface to communicate with multiple clients, a one-to-many method is realized. In the specific implementation process, first, based on the acquisition requests of multiple clients, the monitoring interface is sent to multiple clients, so that the multiple clients send their respective connection requests to the monitoring interface based on the monitoring interface. interface; then receive the respective connection requests sent by the multipl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a communication mode implementation method and an electronic device, and the method comprises the steps: firstly registering a virtual service name, and creating a monitoring port of a micro-kernel; sending the monitoring interface to the plurality of clients based on the acquisition requests of the plurality of clients, so that the plurality of clients send respective connection requests to the monitoring interface based on the monitoring interface; and then, receiving respective connection requests sent by the plurality of clients, correspondingly creating micro-kernel message session instances for each connection request by using the thread of the micro-kernel information server, generating a connection response message of each micro-kernel message session instance, and sending the connection response message to the client corresponding to each connection request. Therefore, a monitoring interface is established by registering a virtual service name, and a thread of the micro-kernel information server is used for correspondingly creating a micro-kernel message session instance for each connection request to communicate with the corresponding client, so that one monitoring interface can be used for realizing one-to-many communication with a plurality of clients.

Description

technical field [0001] The present application relates to the technical field of communication, and in particular to a method for implementing a communication mode and electronic equipment. Background technique [0002] Under the Mac OSX system, there are many methods for inter-process communication, such as CFMessagePort. [0003] Create a CFMessagePort local port named "XXX" in process A by calling the CFMessagePortCreateLocal API (create local interface API) of the CoreFoundation framework under the OSX system, and then create a CFMessagePort local port named "XXX" in another process B by calling CFMessagePortCreateRemote "CFMessagePort remote port. In this way, process A and process B have established a communication connection through the port named "XXX". [0004] However, the above method is only suitable for one-to-one communication, not for one-to-many communication. If process A is a server, and process B is a client, if there are multiple clients communicating ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/546G06F9/547G06F2209/541
Inventor 杨亮张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products