unix编程——posix消息队列
摘要:
两个简单的消息队列发送和接受的例子:send.c:#include <stdlib.h>#include <stdio.h>#include <mqueue.h>#include <sys/stat.h>int main(){ mqd_t mqd; struct mq_attr attr; int flags; flags = O_RDWR | O_CREAT; mqd = mq_open("/temp.1234",flags,S_IRUSR|S_IWUSR|S_IROTH|S_IWOTH,NULL); mq_getattr( 阅读全文
posted @ 2011-08-08 23:51 confide 阅读(287) 评论(0) 推荐(0)
浙公网安备 33010602011771号