# US 2016/0253225 A1 · Method and device for exchanging data between processes

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253225 A1
- Document ID: US20160253225A1
- Status: Published application
- Kind: A1
- Application number: 15/149,259
- Filed: 2016-05-09
- Published: 2016-09-01
- Earliest claimed: 2013-11-07
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Liwei Ye; Cheng Luo; Bin Li
- Web page: https://patentgrep.com/patent/US20160253225A1

## CPC

- G06F 9/544: {Buffers; Shared memory; Pipes}
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for exchanging data between processes includes: establishing a connection with a server process via a server interface obtained by encapsulating a port; receiving a data process request carrying a name of the server process from a client process via a client interface obtained by encapsulating the port; sending the data process request to the server process via the server interface; establish a connection between the client process and the server process according to the name of the server process; forwarding data sent from the client process to the server process via the server interface; and forwarding data processed by the server process to the client process via the client interface.

## Claims

### Claim 1

A method for exchanging data between processes, comprising:
establishing a connection with a server process via a server interface obtained by encapsulating a port;
receiving a data process request carrying a name of the server process from a client process via a client interface obtained by encapsulating the port;
sending the data process request to the server process via the server interface;
establishing a connection between the client process and the server process according to the name of the server process;
forwarding data sent from the client process to the server process via the server interface; and
forwarding data processed by the server process to the client process via the client interface.

### Claim 2 (depends on 1)

The method according to claim 1, wherein
in an iPhone Operating System (iOS), the port comprises: a Core Foundation (CF)MessagePort, a socket or a pipe;
in an android system, the port comprises: a socket, a pipe or a binder.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
disconnecting the connection between the client process and the server process.

### Claim 4 (depends on 2)

The method according to claim 2, wherein receiving the data process request from the client process via the client interface comprises:
receiving the data process request form the client process via the client interface when the client process determines that the server process has run via the client interface.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the data process request comprises: a synchronous data process request or an asynchronous data process request.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
monitoring a register message sent from the client process via the server interface; and
forwarding the data processed by the server process to the client process via the client interface if the register message has been registered.

### Claim 7

A device for exchanging data between processes, comprising:
a server interface, a client interface, a first establishment unit, a reception unit, a transmission unit, a second establishment unit; wherein the server interface and client interface are obtained by encapsulating the device;
the first establishment unit is to establish a connection with a server process via the server interface;
the reception unit is to receive a data process request carrying a name of the server process from a client process via the client interface;
the transmission unit is to send the data process request to the server process via the server interface, send data sent from the client process to the server process via the server interface and forward data processed by the server process to the client process via the client interface; and
the second establishment unit is to establish a connection between the client process and the server process according to a name of the server process.

### Claim 8 (depends on 7)

The device according to claim 7, wherein
in an iPhone Operating System (iOS), the port comprises: a Core Foundation (CF)MessagePort, a socket or a pipe;
in an android system, the port comprises: a socket, a pipe or a binder.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
a disconnection unit, to disconnect the connection between the client process and the server process.

### Claim 10 (depends on 8)

The device according to claim 8, wherein the transmission unit is further to receive the data process request from the client process via the client interface when the client process determines that the server process has run via the client interface.

### Claim 11 (depends on 8)

The device according to claim 8, wherein the data process request comprises: a synchronous data process request or an asynchronous data process request.

### Claim 12 (depends on 7)

The device according to claim 7, further comprising:
a monitor unit, to monitor a register message sent from the client process using the server interface; and
wherein the transmission unit is further to forward the data processed by the server process to the client process via the client interface if the register message has been registered.
