ipc-pubsub:简化的POSIX共享内存上的IPC,带有PublisherSubscriber接口

上传者: 42122306 | 上传时间: 2022-05-09 23:23:04 | 文件大小: 38KB | 文件类型: ZIP
C++
ipc-pubsub 具有发布者/订阅者接口的POSIX共享内存上的简化IPC。 设计须知 思想 Unix / Posix队列需要调整以具有合理数量的可用文件描述符。 我希望不要这样。 UDP需要正确的网络设置,这似乎并不理想 信号量不允许任何数据,这意味着必须通过复杂的共享内存结构(包括有关可用节点的元数据)发送所有实际有效载荷 管道的状态有些复杂,可能导致虚假阻塞管道中的数据过多 设计 单个共享内存对象保留有索引和运行中消息 添加节点 写锁定元数据文件 读取当前的元数据 将节点信息附加到数据 写元数据 解锁元数据文件 发送信息 (可选)检索并使用shm缓冲区:: Allocate()-> ShmBuffer(); Send(ShmBuffer)或Send(data,len) 写锁定元数据文件 读取当前的元数据 附加到适当的飞行队列 解锁元数据文件 sem_up()在所有读者上

文件下载

资源详情

[{"title":"( 35 个子文件 38KB ) ipc-pubsub:简化的POSIX共享内存上的IPC,带有PublisherSubscriber接口","children":[{"title":"ipc-pubsub-main","children":[{"title":"BUILD <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"bazel","children":[{"title":"BUILD <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"external","children":[{"title":"gtest.BUILD <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"spdlog.BUILD <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"BUILD <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"fmtlib.BUILD <span style='color:#111;'> 273B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"ponger.cc <span style='color:#111;'> 704B </span>","children":null,"spread":false},{"title":"unix_dgram_writer.cc <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"IPCNode.cc <span style='color:#111;'> 9.34KB </span>","children":null,"spread":false},{"title":"pinger.cc <span style='color:#111;'> 876B </span>","children":null,"spread":false},{"title":"UDSServer.h <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"BUILD <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"UDSClient.cc <span style='color:#111;'> 5.16KB </span>","children":null,"spread":false},{"title":"ipc_node_test.cc <span style='color:#111;'> 177B </span>","children":null,"spread":false},{"title":"UDSServer.cc <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"unix_dgram_reader.cc <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"IPCNode.h <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"TopologyServer.h <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"topology_node.cc <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"TopologyManager.cc <span style='color:#111;'> 9.24KB </span>","children":null,"spread":false},{"title":"Utils.cc <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"TopologyManager.h <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"Utils.h <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"test_topology_manager.cc <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"standalone_subscriber.cc <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"standalone_publisher.cc <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"UDSClient.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"TopologyServer.cc <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false}],"spread":false},{"title":".clang-format <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":".bazelrc <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"protos","children":[{"title":"BUILD <span style='color:#111;'> 422B </span>","children":null,"spread":false},{"title":"index.proto <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"WORKSPACE <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明