2013年12月22日 星期日

Binder on Ubuntu process to process communication

Why binder faster than socket:
Binder copy only needs one time, but pipelines, queues, sockets, D-bus all need two times
https://www.dre.vanderbilt.edu/~schmidt/cs282/PDFs/android-binder-ipc.pdf

Binder include 4 parts:
1. Driver
2. Service Manager
Register service name
3. Server
onTransact receive data from the client
4. Client

Now move binder from android to ubuntu, you can debug source in eclipse
source code:
https://github.com/fatalfeel/binderubuntu

Refer to
http://fatalfeel.blogspot.com/2013/09/app-pass-message-through-binder-to-user.html

沒有留言:

張貼留言