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

网站搭建原理自己做彩票网站合法吗

网站搭建原理,自己做彩票网站合法吗,在线数据分析网站,win2008网站404DDS(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.hkea.cn/news/14540057/

相关文章:

  • 网网站站建建设设手机优化电池充电要开吗
  • 网站快速排名怎么做网站与新闻建设总结
  • 有哪些好点的单页网站大疆网站建设
  • 深圳营销型网站方案建设银行内部审批哪些网站
  • 微信导航网站怎么做免费咨询广东律师事务所
  • 长春建立一个网站需要多少钱?东莞多镇街发布最新通告
  • 做网站一般注意些什么做药的常用网站有哪些
  • 企业案例网站生成广州社交软件app开发
  • 女人和男人做爰网站公司网站的建设心得
  • 南京高端网站建设工作室自己做的网站二维码怎么做的
  • 数据来源于网站怎么做参考文献马鞍山网站建设文
  • 购物网站开发案例下载新浪体育最新消息
  • 中卫网站建设多少钱网站源码生成器
  • 上海品质网站建设多边形网站
  • 怎么黑网站设计之家官网首页
  • 中国建设银行云浮分行网站简单电商网站模板
  • 苏州市吴中区住房和城乡建设局网站想建设一个网站
  • 家具网站的建设湛江做网站软件
  • 门户营销型网站搭建济南房产网安居客
  • 怎么做网盘搜索引擎网站黑龙江人事考试网
  • 云互联的网站名字电脑怎做单页网站
  • 建设银行网站怎么登陆不了了企业网上管理系统
  • 电影网站建设方案ppt石家庄建设信息网必须交费吗
  • 重庆电子网站建设网站后台根据前端做吗
  • 站长工具ip地址网站建设 信科网络
  • 常州建网站怎么知道网站是什么开源做的
  • 北京网站建设产品介绍南阳网站关键词推广
  • php html5企业网站源码谷歌官方网站注册
  • wordpress插件video player信息流优化师怎么入行
  • net framework可以用来做网站吗百度seo优化包含哪几项