Named pipeline process communication method based on Chromium

A named pipe and process communication technology, applied in the field of IPC communication, to achieve the effect of a wide range of applications

Inactive Publication Date: 2018-02-06
INST OF ACOUSTICS CHINESE ACAD OF SCI +1
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 3. The client side of UNIX Domain Socket generally calls the bind function explicitly, instead of relying on the address automatically assigned by the system like network Socket

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
  • Named pipeline process communication method based on Chromium
  • Named pipeline process communication method based on Chromium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The content of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0023] like figure 1 As shown, a Chromium-based named pipe process communication method, the method includes:

[0024] Step 1) Create two processes that need to communicate: process A and process B;

[0025] Step 2) Process A creates a Server through a UNIX Domain Socket based on a named pipe, generates a corresponding Socket fd: fd1, and binds and monitors fd1; fd1 is bound to an event of Libevent, so that Libevent can monitor;

[0026] Step 3) Process B creates a Client through a UNIX Domain Socket based on a named pipe, generates a corresponding Socket fd: fd2, binds fd2 and initiates a connection request to the Server;

[0027] Step 4) When the server side obtains the connection request, the event bound to Libevent will be triggered to notify the server side of the callback function accept, and the accept function returns a successful va...

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 named pipeline process communication method based on Chromium. The method includes the following steps that a Server terminal and a Client terminal are created for a processA needing communication and a process B needing communication respectively based on the UNIX Domain Socket of a named pipeline, corresponding Socket handles fd1 and fd2 are generated, the two Socket handles are bound with the Libevent event, when the Client terminal sends a request to the Server terminal, an event bound with the Server terminal is triggered, a Socket handle fd3 used for communication is generated, binding with the Libevent event is conducted, the Server terminal sends and receives information by means of the handle fd3 and the event, and the Client terminal sends and receivesinformation by means of the handle fd2 and the event. Based on the UNIX Domain Socket of the named pipeline, the method can complete communication between any two processes, and compared with the original method based on Chromium, the application range of the process is wider.

Description

technical field [0001] The invention relates to the field of IPC communication, in particular to a Chromium-based named pipe process communication method. Background technique [0002] With the promotion and popularization of the Internet, browsers, as an important entrance to access the Internet, are gradually showing a trend of diversification and complexity, especially the formulation of HTML5, which indicates that browsers have completely bid farewell to web browsing and search. The old era gradually extends to the Web OS era, which simulates or even replaces the operating system to realize its various functions; and the vigorous rise of the mobile Internet has intensified the transformation of this process. While these trends bring new opportunities to browsers, they also bring great challenges. Current browsers must not only have rich display functions, but also have stable performance experience and reliable security guarantees. [0003] Chrome (Chromium) browser rel...

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/542G06F9/544
Inventor 胡琳琳耿筱林郭志川朱小勇
Owner INST OF ACOUSTICS CHINESE ACAD OF SCI
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