android系统binder通信架构分析

来源:互联网 发布:pc防蓝光软件 编辑:程序博客网 时间:2024/05/19 20:46

Binder系统核心
通信需要的三要素,源,目的,数据。
探索Binder通信的一条核心就是:Client如何找Server,将请求发送给Server,Server再将结果返回给Client。
IPC:Inter-Process Communication, 进程间通信

1、源 :client
2、目的:server
server向servicemanager注册服务
Client向servicemanager查询服务,返回一个handle
3、数据:char_buf【512】。

RPC:RPC:Remote Procedure Call, 远程过程调用

0 0
原创粉丝点击