前面大致介绍了Android的Binder机制。点击打开链接 这里趁热打铁,看一下AIDL的简单实现。说到底还是用了Binder机制实现的。 第一步:创建aidl目录,与java目录平级,然后再里面创建aidl文件,里面声明的是服务要实现的接口。如下,add方法和sp方法 interface MyAidlInterface {/*** Demonstrates some basic type
IPC通信中间件综述 DBus(Desktop Bus)FDBusDDS(Data Distribution Service)Fast DDS(Fast Data Distribution Service)OpenDDS(Open Data Distribution Service)IceoryxCyberRTZeroMQROS 2(Robot Operating System 2)Apex
channel 通信的例子: using ConsoleApp2;using System.Collections.Concurrent;using System.Threading.Channels;var queue = new BlockingCollection<Message>(new ConcurrentQueue<Message>());var opt = new Bound