{"id":2859,"date":"2022-05-17T15:49:52","date_gmt":"2022-05-17T14:49:52","guid":{"rendered":"https:\/\/www.ridgesolutions.ie\/?p=2859"},"modified":"2022-05-18T14:36:55","modified_gmt":"2022-05-18T13:36:55","slug":"simple-wrapper-of-boostasio-for-receiving-udp-datagrams","status":"publish","type":"post","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/","title":{"rendered":"Simple Wrapper of boost::asio for receiving UDP datagrams"},"content":{"rendered":"<p>More easily receive UDP Data via boost::asio providing just IP address and port umber.<\/p>\n<p>The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility.<\/p>\n<p>Sometimes I just want to provide an IP address and a port number and just receive messages so I have written a wrapper class called boost_udp_receive_rar which can be found on GitHub <a href=\"https:\/\/github.com\/kgodden\/boost_udp_receive_rar\">here<\/a>.<\/p>\n<p>It has 4 functions that allow you to receive string or binary messages in a synchronous or asynchronous manner, for example to receive ASCII string data:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"cpp\">#include \"boost_udp_send_faf.h\"\r\n#include &lt;thread&gt;\r\n\r\n\/\/ Setup a receiver, specifying IP address and port\r\n\/\/ Note the IP address is that of the receiving network\r\n\/\/ interface.  As always with UDP and non-standard ports\r\n\/\/ check that a firewall isn't blocking data transfer.\r\nboost_udp_receive_rar rar(\"127.0.0.1\", 8861);\r\n\r\n\/\/ Receive a datagram synchronously as a string\r\n\/\/\r\nstd::string datagram = rar.receive_sync();\r\n\r\nstd::count &lt;&lt; \"received: \" &lt;&lt; datagram &lt;&lt; std::endl;\r\n\r\n\/\/ Asynchronously receive a datagram as a string\r\n\/\/\r\n\/\/ We loop calling receive_async() until it returns\r\n\/\/ a non-empty string. receive_async() returns quickly\r\n\/\/ and we can do other work (or other async reads on different\r\n\/\/ ports) while we wait for somethign to arrive.\r\n\r\n\r\ndo {\r\n    datagram = rar.receive_async();\r\n\r\n    \/\/ Do other stuff\r\n    \/\/\r\n    \/\/ Better do a little sleep to be nice to the\r\n    \/\/ CPU\r\n    std::this_thread::sleep_for(std::chrono::milliseconds(100));\r\n\r\n} while (datagram.empty());\r\n\r\nstd::count &lt;&lt; \"received: \" &lt;&lt; datagram &lt;&lt; std::endl;\r\n<\/pre>\n<p>For an easier way to send UDP data see: <a title=\"boost_udp_send_faf\" href=\"https:\/\/www.ridgesolutions.ie\/index.php\/2019\/11\/15\/fire-and-forget-wrapper-for-sending-of-simple-udp-data-using-boostasio-libraries\/\">boost_udp_send_faf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[301],"tags":[],"class_list":["post-2859","post","type-post","status-publish","format-standard","hentry","category-by-kevin-godden"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kevin Godden\"\/>\n\t<meta name=\"google-site-verification\" content=\"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams\" \/>\n\t\t<meta property=\"og:description\" content=\"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-05-17T14:49:52+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-05-18T13:36:55+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams\" \/>\n\t\t<meta name=\"twitter:description\" content=\"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#article\",\"name\":\"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams\",\"headline\":\"Simple Wrapper of boost::asio for receiving UDP datagrams\",\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#articleImage\",\"width\":400,\"height\":81},\"datePublished\":\"2022-05-17T15:49:52+00:00\",\"dateModified\":\"2022-05-18T14:36:55+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#webpage\"},\"articleSection\":\"By Ridge Solutions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/by-kevin-godden\\\/#listItem\",\"name\":\"By Ridge Solutions\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/by-kevin-godden\\\/#listItem\",\"position\":2,\"name\":\"By Ridge Solutions\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/by-kevin-godden\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#listItem\",\"name\":\"Simple Wrapper of boost::asio for receiving UDP datagrams\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#listItem\",\"position\":3,\"name\":\"Simple Wrapper of boost::asio for receiving UDP datagrams\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/by-kevin-godden\\\/#listItem\",\"name\":\"By Ridge Solutions\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#organizationLogo\",\"width\":400,\"height\":81},\"image\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/\",\"name\":\"Kevin Godden\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kevin Godden\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/\",\"name\":\"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams\",\"description\":\"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2022\\\/05\\\/17\\\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"datePublished\":\"2022-05-17T15:49:52+00:00\",\"dateModified\":\"2022-05-18T14:36:55+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams","description":"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an","canonical_url":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#article","name":"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams","headline":"Simple Wrapper of boost::asio for receiving UDP datagrams","author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/#articleImage","width":400,"height":81},"datePublished":"2022-05-17T15:49:52+00:00","dateModified":"2022-05-18T14:36:55+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#webpage"},"articleSection":"By Ridge Solutions"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","position":1,"name":"Home","item":"https:\/\/www.ridgesolutions.ie","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/by-kevin-godden\/#listItem","name":"By Ridge Solutions"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/by-kevin-godden\/#listItem","position":2,"name":"By Ridge Solutions","item":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/by-kevin-godden\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#listItem","name":"Simple Wrapper of boost::asio for receiving UDP datagrams"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#listItem","position":3,"name":"Simple Wrapper of boost::asio for receiving UDP datagrams","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/by-kevin-godden\/#listItem","name":"By Ridge Solutions"}}]},{"@type":"Organization","@id":"https:\/\/www.ridgesolutions.ie\/#organization","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","url":"https:\/\/www.ridgesolutions.ie\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#organizationLogo","width":400,"height":81},"image":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author","url":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/","name":"Kevin Godden","image":{"@type":"ImageObject","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kevin Godden"}},{"@type":"WebPage","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#webpage","url":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/","name":"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams","description":"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/#website"},"breadcrumb":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"creator":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"datePublished":"2022-05-17T15:49:52+00:00","dateModified":"2022-05-18T14:36:55+00:00"},{"@type":"WebSite","@id":"https:\/\/www.ridgesolutions.ie\/#website","url":"https:\/\/www.ridgesolutions.ie\/","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"}}]},"og:locale":"en_US","og:site_name":"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer","og:type":"article","og:title":"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams","og:description":"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an","og:url":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/","article:published_time":"2022-05-17T14:49:52+00:00","article:modified_time":"2022-05-18T13:36:55+00:00","twitter:card":"summary","twitter:title":"Simple Wrapper of boost::asio for receiving UDP datagrams Simple Wrapper of boost::asio for receiving UDP datagrams","twitter:description":"More easily receive UDP Data via boost::asio providing just IP address and port umber. The boost::asio classes provide a cross platform way to communicate via UDP without having to use the raw socket libraries, however they can be confusing and hard to use do to their designed-in flexibility. Sometimes I just want to provide an"},"aioseo_meta_data":{"post_id":"2859","title":"#post_title Simple Wrapper of boost::asio for receiving UDP datagrams","description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"aioseo-article-634f48569db2a","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-05-17 14:28:10","updated":"2026-08-07 16:46:46","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\/index.php\/category\/by-kevin-godden\/\" title=\"By Ridge Solutions\">By Ridge Solutions<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSimple Wrapper of boost::asio for receiving UDP datagrams\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ridgesolutions.ie"},{"label":"By Ridge Solutions","link":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/by-kevin-godden\/"},{"label":"Simple Wrapper of boost::asio for receiving UDP datagrams","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2022\/05\/17\/simple-wrapper-of-boostasio-for-receiving-udp-datagrams\/"}],"_links":{"self":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/2859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/comments?post=2859"}],"version-history":[{"count":0,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/2859\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/media?parent=2859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/categories?post=2859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/tags?post=2859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}