看到android的binder机制,有点不太理解。BP(binder proxy)和BN(binder native)是通过binder来通信的。Bp主要是用来处理java层传下来的服务请求。然后通过transact将处理请求传给bn(通过binder)。请教各位大虾,这里BP和BN我有点不理解,为什么处理java层传下来的请求的部分叫做BP,我感觉应该叫做BN,谢谢。

解决方案 »

  1.   

    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