android binder机制中的BN和BP

jj807 2012-06-14 09:51:07
看到android的binder机制,有点不太理解。BP(binder proxy)和BN(binder native)是通过binder来通信的。Bp主要是用来处理java层传下来的服务请求。然后通过transact将处理请求传给bn(通过binder)。

请教各位大虾,这里BP和BN我有点不理解,为什么处理java层传下来的请求的部分叫做BP,我感觉应该叫做BN,谢谢。
...全文
886 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ameyume 2012-06-16
  • 打赏
  • 举报
回复
Q:What do "Bn*" and "Bp*" stand for in frameworks/base/include/utils/IInterface.h ?

I understand that "B" is for binder but what about "n" and "p"?

It seems like "p" may stand for "remote" and "n" for "native" but I would love a clarification.

A:"n" is native, that is the class you inherit from to implement the interface; "p" is proxy, that is the class that is created to perform interface calls through IPC.

http://groups.google.com/group/android-platform/browse_thread/thread/467bc0b5e858473f

80,493

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧