IPC
Turbyun
只要你不打算一口吃成一个胖子,所有的东西都是纸老虎
展开
-
linux --消息队列 (文件服务器)
client.c #include "msgque.h" #include "unpipc.h" #include <string.h> #include "myerror.h" #define path_file "/home/unix/unpv/msg_queue/src/msgque.c" #define path_file2 "app/main.c" #defi原创 2018-06-21 15:43:51 · 446 阅读 · 0 评论 -
创建消息队列 msg_id
const int BaseMsgq::proj_id_ = static_cast<int>('a'); const char *BaseMsgq::pathname_ = "/root"; BaseMsgq::BaseMsgq() { msgq_key_ = ftok(pathname_, proj_id_); if (msgq_key_ < 0) ...原创 2018-10-30 15:23:49 · 660 阅读 · 0 评论