Justson / Flying Pigeon
Licence: apache-2.0
flying-pigeon 是一个IPC 跨进程通信组件,底层是匿名内存+Binder , 突破1MB大小限制,无需写AIDL文件,让实现跨进程通信就像写一个接口一样简单
Stars: ✭ 97
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Flying Pigeon
background-service-lib
Essential classes for reliable background services.
Stars: ✭ 24 (-75.26%)
Mutual labels: service, ipc
FactoryOrchestrator
A cross-platform system service which provides a simple way to run and manage factory line validation, developer inner-loop, diagnostics, and fault analysis workflows.
Stars: ✭ 36 (-62.89%)
Mutual labels: service, ipc
binder-for-linux
An experimental project to port Android Binder IPC subsystem to Ubuntu Linux.
Stars: ✭ 110 (+13.4%)
Mutual labels: binder, ipc
Zun
Containers Service for OpenStack. Mirror of code maintained at opendev.org.
Stars: ✭ 69 (-28.87%)
Mutual labels: service
Binderfilter
A Linux kernel IPC firewall and logger for Android and Binder
Stars: ✭ 70 (-27.84%)
Mutual labels: binder
Jocket
Low-latency java socket implementation (using shared memory)
Stars: ✭ 83 (-14.43%)
Mutual labels: ipc
Endurox
Enduro/X Middleware Platform for Distributed Transaction Processing
Stars: ✭ 91 (-6.19%)
Mutual labels: ipc
Automator
Various Automator and AppleScript workflow and scripts for simplifying life
Stars: ✭ 68 (-29.9%)
Mutual labels: service
Ec2 Api
AWS EC2 and VPC API support in standalone service for OpenStack. Mirror of code maintained at opendev.org.
Stars: ✭ 93 (-4.12%)
Mutual labels: service
Neutron
OpenStack Networking (Neutron). Mirror of code maintained at opendev.org.
Stars: ✭ 1,205 (+1142.27%)
Mutual labels: service
Flying-Pigeon
Flying-Pigeon 是一个IPC跨进程通信组件,把跨进程通信简化到极致,并且突破binder 1MB内存大小限制。
引入
- Gradle
implementation 'com.github.Justson:flying-pigeon:v1.0.7'
方式一
Server
private Api mApi = new Api() {
@Override
public int createPoster(Poster poster) {
Log.e(TAG, "poster:" + GsonUtils.toJson(poster));
return 11;
}
};
对外发布服务
ServiceManager.getInstance().publish(mApi);
Client
final Pigeon pigeon = Pigeon.newBuilder(this).setAuthority(ServiceApiImpl.class).build();
Api api = pigeon.create(Api.class);
api.createPoster(new Poster("Justson", "just", 119, 11111000L, (short) 23, 1.15646F, 'h', (byte) 4, 123456.415D));
方式二
Server
@MainThread
@route("/query/username")
public void queryUsername(final Bundle in, final Bundle out) {
ipcLabel.setText("received other app message,\n message:" + in.getString("userid"));
out.putString("username", "ipc-sample");
}
对外发布服务
ServiceManager.getInstance().publish(this);
Client
Pigeon flyPigeon = Pigeon.newBuilder(MainActivity.this).setAuthority("com.flyingpigeon.ipc_sample").build();
Bundle bundle = flyPigeon.route("/query/username").withString("userid", UUID.randomUUID().toString()).fly();
混淆
-keep class com.flyingpigeon.library.*
-dontwarn com.flyingpigeon.library.*
建议
- 建议App内使用方式一,App与其他App通信使用方式二
- 返回的类型中,尽可能使用基本数据类型的包装类、如Integer,Double,Long,Short,Float,Byte,Boolean,Character
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].