当前位置: 首页 > news >正文

windows7怎么做网站服务器长宁区公司网站建设

windows7怎么做网站服务器,长宁区公司网站建设,做网站服务器在哪买,东莞做网站制作DDS(Data Distribution Service数据分发服务)是对象管理组织OMG的有关分布式实时系统中数据发布的规范。 DDS规范采用了发布/订阅体系结构#xff0c;但对实时性要求提供更好的支持。DDS是以数据为中心的发布/订阅通信模型。 以下工程基于rti_connext_dds-7.2.0 hello_world.…DDS(Data Distribution Service数据分发服务)是对象管理组织OMG的有关分布式实时系统中数据发布的规范。 DDS规范采用了发布/订阅体系结构但对实时性要求提供更好的支持。DDS是以数据为中心的发布/订阅通信模型。 以下工程基于rti_connext_dds-7.2.0 hello_world.idl定义的HelloWorld结构体如下 使用RTI Code Generatorrtiddsgen生成对应工程。 生成的工程目录如下 用VS2017打开工程 重点关注 hello_world_publisher.cxx和 hello_world_subscriber.cxx两个文件 Publisher publisher实现的是发布subscriber实现的是订阅。 在hello_world_publisher.cxx中 // 创建一个HelloWorld类型以HelloWorld Topic命名的Topicdds::topic::TopicHelloWorld topic(participant, HelloWorld Topic);dds::pub::Publisher publisher(participant);// DataWriter将要在HelloWorld Topic中写入数据dds::pub::DataWriterHelloWorld writer(publisher, topic);定义HelloWorld类型的samplesample.msg()定义sample输出的内容 通过write函数写入数据 HelloWorld sample;for (unsigned int count 0;!shutdown_requested count sample_count;count) {sample.msg(Hello world! std::to_string(count));std::cout Writing HelloWorld, count count std::endl;writer.write(sample);rti::util::sleep(dds::core::Duration(4));}Subscriber 类似的定义Subscriber // 创建一个HelloWorld类型以HelloWorld Topic命名的Topicdds::topic::TopicHelloWorld topic(participant, HelloWorld Topic);dds::sub::Subscriber subscriber(participant);// DataReader将要读取topic数据dds::sub::DataReaderHelloWorld reader(subscriber, topic);创建状态条件满足条件才读取数据 // 创建条件dds::core::cond::StatusCondition status_condition(reader);status_condition.enabled_statuses(dds::core::status::StatusMask::data_available());// 条件触发后关联句柄unsigned int samples_read 0;status_condition.extensions().handler([reader, samples_read]() {samples_read process_data(reader);});dds::core::cond::WaitSet waitset;waitset status_condition;while (!shutdown_requested samples_read sample_count) {// 条件激活std::cout HelloWorld subscriber sleeping for 4 sec... std::endl;waitset.dispatch(dds::core::Duration(4)); // Wait up to 4s each time}
http://www.w-s-a.com/news/933789/

相关文章:

  • 自助建站系统注册三维家3d设计软件免费
  • 做seo网站标题重要吗郑州众诚建设监理有限公司网站
  • 建设网站南沙区百度关键词推广怎么做
  • 网站建设公司做销售前景好不好石家庄外贸网站制作
  • windows2008做网站网站首页打开速度
  • 做外贸要做什么网站服装设计图
  • 中山市路桥建设有限公司网站网站开发角色分配权限
  • 加强档案网站建设网站搭建好了不用会不会被攻击
  • 维护网站信息网络建设服务
  • 网站建设策划书模板下载用自己电脑配置服务器做网站
  • 360免费建站空间淘宝数据网站开发
  • 做分销的网站本地dede网站怎么上线
  • 中学网站模板北京管理咨询公司
  • 网站开发用哪个软件方便二级网站建设 管理思路
  • 个人怎么创建网站中国建设银行网站口
  • 跟知乎一样的网站做展示网站步骤
  • 邯郸网站建设效果好wordpress app 加载慢
  • 做app的网站有哪些功能广州自适应网站建设
  • 兰州建设网站的网站开源网站建设
  • 深圳网站建设南山指数基金是什么意思
  • 备案中又需要建设网站网站信息组织优化
  • 做网站推广需要什么asp响应式h5网站源码下载
  • 柳州建设网官方网站免费自助建站哪个平台好
  • 论坛网站模板源码下载网站建设与网页设计是什么
  • 跑流量的网站淘宝网站的建设目标是
  • 网站计费系统怎么做九一制作网站
  • 网红营销推广温州seo博客
  • 临沂网站制作定制现在比较流行的软件开发模型
  • 南宁企业建站系统做问卷调查哪个网站好
  • 能打开各种网站的浏览器推荐建设部的网站首页