当前位置: 代码迷 >> Android >> android binder机制中的BN跟BP
  详细解决方案

android binder机制中的BN跟BP

热度:103   发布时间:2016-05-01 13:07:00.0
android binder机制中的BN和BP
看到android的binder机制,有点不太理解。BP(binder proxy)和BN(binder native)是通过binder来通信的。Bp主要是用来处理java层传下来的服务请求。然后通过transact将处理请求传给bn(通过binder)。

请教各位大虾,这里BP和BN我有点不理解,为什么处理java层传下来的请求的部分叫做BP,我感觉应该叫做BN,谢谢。

------解决方案--------------------
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
  相关解决方案