A simple ipc lib, it can listen to the number of inter-process message execution and log view and inter-process program calls, and provides several good tools to simulate the message sent;There are three main files in the output, eipcd for daemon, libeipc.so for process integration library, and eipc for debugging tool set (eipcls, eipccat, eipcprint, eipcmsg are soft connections to eipc)
一个简单的进程间通讯的工具,它可以监听进程间消息执行的次数以及log的查看以及进程间的程序调用,并提供了几个比较好的工具用来模拟消息发送,输出一共有三个主要文件, eipcd 用于守护进程 , libeipc.so 用于进程的集成库 , eipc 用于调试工具集(eipcls , eipccat , eipcprint , eipcmsg 都是eipc的软连接)
easyipc守护进程,需要在其它用到easyipc功能的进程启动之前启动(推荐),并一般在后台运行 (使用 &)
ERROR WARM NORMAL INFO DEBUG
- nohup eipcd &
- 添加入启动service中,然后start
IPC_API_RET ipc_call_api(ipc_handle *ipc,const char *pname,const char *api_name,void *data,int size,void **ret_data,int *ret_size,int timeout);
远程调用指定服务名称的指定函数名称,该函数需要在它所在的服务中被声明过,可以携带参数发送给被调用者,同时也可以接受调用者的返回数据,需要注意,如果有返回值,则该返回值是需要调用者主动释放的,否则会发生内存泄漏问题
#####用法:
#####用法: