classhueplusplus_1_1_lin_http_handler.html 24.8 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hueplusplus: hueplusplus::LinHttpHandler Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hueplusplus
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehueplusplus.html">hueplusplus</a></li><li class="navelem"><a class="el" href="classhueplusplus_1_1_lin_http_handler.html">LinHttpHandler</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhueplusplus_1_1_lin_http_handler-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">hueplusplus::LinHttpHandler Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class to handle http requests and multicast requests on linux systems.  
 <a href="classhueplusplus_1_1_lin_http_handler.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_lin_http_handler_8h_source.html">hueplusplus/LinHttpHandler.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for hueplusplus::LinHttpHandler:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classhueplusplus_1_1_lin_http_handler__inherit__graph.png" border="0" usemap="#hueplusplus_1_1_lin_http_handler_inherit__map" alt="Inheritance graph"/></div>
<map name="hueplusplus_1_1_lin_http_handler_inherit__map" id="hueplusplus_1_1_lin_http_handler_inherit__map">
<area shape="rect" id="node2" href="classhueplusplus_1_1_base_http_handler.html" title="Base class for classes that handle http requests and multicast requests. " alt="" coords="5,80,224,107"/>
<area shape="rect" id="node3" href="classhueplusplus_1_1_i_http_handler.html" title="Abstract class for classes that handle http requests and multicast requests. " alt="" coords="19,5,210,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for hueplusplus::LinHttpHandler:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classhueplusplus_1_1_lin_http_handler__coll__graph.png" border="0" usemap="#hueplusplus_1_1_lin_http_handler_coll__map" alt="Collaboration graph"/></div>
<map name="hueplusplus_1_1_lin_http_handler_coll__map" id="hueplusplus_1_1_lin_http_handler_coll__map">
<area shape="rect" id="node2" href="classhueplusplus_1_1_base_http_handler.html" title="Base class for classes that handle http requests and multicast requests. " alt="" coords="5,80,224,107"/>
<area shape="rect" id="node3" href="classhueplusplus_1_1_i_http_handler.html" title="Abstract class for classes that handle http requests and multicast requests. " alt="" coords="19,5,210,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a737ed1b4d14b41d24242318d47500765"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_lin_http_handler.html#a737ed1b4d14b41d24242318d47500765">send</a> (const std::string &amp;msg, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a737ed1b4d14b41d24242318d47500765"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that sends a given message to the specified host and returns the response.  <a href="#a737ed1b4d14b41d24242318d47500765">More...</a><br /></td></tr>
<tr class="separator:a737ed1b4d14b41d24242318d47500765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29ff04a3ca7ca1051743763b2e30d3c5"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_lin_http_handler.html#a29ff04a3ca7ca1051743763b2e30d3c5">sendMulticast</a> (const std::string &amp;msg, const std::string &amp;adr=&quot;239.255.255.250&quot;, int port=1900, std::chrono::steady_clock::duration timeout=std::chrono::seconds(5)) const override</td></tr>
<tr class="memdesc:a29ff04a3ca7ca1051743763b2e30d3c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that sends a multicast request with the specified message.  <a href="#a29ff04a3ca7ca1051743763b2e30d3c5">More...</a><br /></td></tr>
<tr class="separator:a29ff04a3ca7ca1051743763b2e30d3c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classhueplusplus_1_1_base_http_handler"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classhueplusplus_1_1_base_http_handler')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classhueplusplus_1_1_base_http_handler.html">hueplusplus::BaseHttpHandler</a></td></tr>
<tr class="memitem:a0e1250a1537f7e7f05cab75af4b9c82f inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a0e1250a1537f7e7f05cab75af4b9c82f">~BaseHttpHandler</a> ()=default</td></tr>
<tr class="memdesc:a0e1250a1537f7e7f05cab75af4b9c82f inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual dtor.  <a href="classhueplusplus_1_1_base_http_handler.html#a0e1250a1537f7e7f05cab75af4b9c82f">More...</a><br /></td></tr>
<tr class="separator:a0e1250a1537f7e7f05cab75af4b9c82f inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5f51b25770345641c871f6efbc579aa inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#ad5f51b25770345641c871f6efbc579aa">sendGetHTTPBody</a> (const std::string &amp;msg, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:ad5f51b25770345641c871f6efbc579aa inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a message to a specified host and return the body of the response.  <a href="classhueplusplus_1_1_base_http_handler.html#ad5f51b25770345641c871f6efbc579aa">More...</a><br /></td></tr>
<tr class="separator:ad5f51b25770345641c871f6efbc579aa inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a10fabfc57e4c60612bc279fae25050 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a8a10fabfc57e4c60612bc279fae25050">sendHTTPRequest</a> (const std::string &amp;method, const std::string &amp;uri, const std::string &amp;contentType, const std::string &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a8a10fabfc57e4c60612bc279fae25050 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP request with the given method to the specified host and return the body of the response.  <a href="classhueplusplus_1_1_base_http_handler.html#a8a10fabfc57e4c60612bc279fae25050">More...</a><br /></td></tr>
<tr class="separator:a8a10fabfc57e4c60612bc279fae25050 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601f2e4dfec195a094e30c2f22263cf9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a601f2e4dfec195a094e30c2f22263cf9">GETString</a> (const std::string &amp;uri, const std::string &amp;contentType, const std::string &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a601f2e4dfec195a094e30c2f22263cf9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP GET request to the specified host and return the body of the response.  <a href="classhueplusplus_1_1_base_http_handler.html#a601f2e4dfec195a094e30c2f22263cf9">More...</a><br /></td></tr>
<tr class="separator:a601f2e4dfec195a094e30c2f22263cf9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a896da865ceb520bd9797948395fa203d inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a896da865ceb520bd9797948395fa203d">POSTString</a> (const std::string &amp;uri, const std::string &amp;contentType, const std::string &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a896da865ceb520bd9797948395fa203d inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP POST request to the specified host and return the body of the response.  <a href="classhueplusplus_1_1_base_http_handler.html#a896da865ceb520bd9797948395fa203d">More...</a><br /></td></tr>
<tr class="separator:a896da865ceb520bd9797948395fa203d inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72f4a78eea5c4b1c8f23b074ee3648bf inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a72f4a78eea5c4b1c8f23b074ee3648bf">PUTString</a> (const std::string &amp;uri, const std::string &amp;contentType, const std::string &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a72f4a78eea5c4b1c8f23b074ee3648bf inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP PUT request to the specified host and return the body of the response.  <a href="classhueplusplus_1_1_base_http_handler.html#a72f4a78eea5c4b1c8f23b074ee3648bf">More...</a><br /></td></tr>
<tr class="separator:a72f4a78eea5c4b1c8f23b074ee3648bf inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139cbb13a19d3f12b8242bbe7e18b850 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a139cbb13a19d3f12b8242bbe7e18b850">DELETEString</a> (const std::string &amp;uri, const std::string &amp;contentType, const std::string &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a139cbb13a19d3f12b8242bbe7e18b850 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP DELETE request to the specified host and return the body of the response.  <a href="classhueplusplus_1_1_base_http_handler.html#a139cbb13a19d3f12b8242bbe7e18b850">More...</a><br /></td></tr>
<tr class="separator:a139cbb13a19d3f12b8242bbe7e18b850 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a059678ec7136be20fc5e8ca242929fe9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a059678ec7136be20fc5e8ca242929fe9">GETJson</a> (const std::string &amp;uri, const nlohmann::json &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a059678ec7136be20fc5e8ca242929fe9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP GET request to the specified host and return the body of the response parsed as JSON.  <a href="classhueplusplus_1_1_base_http_handler.html#a059678ec7136be20fc5e8ca242929fe9">More...</a><br /></td></tr>
<tr class="separator:a059678ec7136be20fc5e8ca242929fe9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad43b42bf599a59fdd89a4195ec891a02 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#ad43b42bf599a59fdd89a4195ec891a02">POSTJson</a> (const std::string &amp;uri, const nlohmann::json &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:ad43b42bf599a59fdd89a4195ec891a02 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP POST request to the specified host and return the body of the response parsed as JSON.  <a href="classhueplusplus_1_1_base_http_handler.html#ad43b42bf599a59fdd89a4195ec891a02">More...</a><br /></td></tr>
<tr class="separator:ad43b42bf599a59fdd89a4195ec891a02 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a602b5ea73d5788e2bb79a654906e5de0 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a602b5ea73d5788e2bb79a654906e5de0">PUTJson</a> (const std::string &amp;uri, const nlohmann::json &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:a602b5ea73d5788e2bb79a654906e5de0 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP PUT request to the specified host and return the body of the response parsed as JSON.  <a href="classhueplusplus_1_1_base_http_handler.html#a602b5ea73d5788e2bb79a654906e5de0">More...</a><br /></td></tr>
<tr class="separator:a602b5ea73d5788e2bb79a654906e5de0 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5e5d6c49851f3a10c6b6378b835226 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#abf5e5d6c49851f3a10c6b6378b835226">DELETEJson</a> (const std::string &amp;uri, const nlohmann::json &amp;body, const std::string &amp;adr, int port=80) const override</td></tr>
<tr class="memdesc:abf5e5d6c49851f3a10c6b6378b835226 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send a HTTP DELETE request to the specified host and return the body of the response parsed as JSON.  <a href="classhueplusplus_1_1_base_http_handler.html#abf5e5d6c49851f3a10c6b6378b835226">More...</a><br /></td></tr>
<tr class="separator:abf5e5d6c49851f3a10c6b6378b835226 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classhueplusplus_1_1_i_http_handler"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classhueplusplus_1_1_i_http_handler')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classhueplusplus_1_1_i_http_handler.html">hueplusplus::IHttpHandler</a></td></tr>
<tr class="memitem:ac98c198e69bc091636799fd8150b9c13 inherit pub_methods_classhueplusplus_1_1_i_http_handler"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_i_http_handler.html#ac98c198e69bc091636799fd8150b9c13">~IHttpHandler</a> ()=default</td></tr>
<tr class="memdesc:ac98c198e69bc091636799fd8150b9c13 inherit pub_methods_classhueplusplus_1_1_i_http_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual dtor.  <a href="classhueplusplus_1_1_i_http_handler.html#ac98c198e69bc091636799fd8150b9c13">More...</a><br /></td></tr>
<tr class="separator:ac98c198e69bc091636799fd8150b9c13 inherit pub_methods_classhueplusplus_1_1_i_http_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class to handle http requests and multicast requests on linux systems. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a737ed1b4d14b41d24242318d47500765"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a737ed1b4d14b41d24242318d47500765">&#9670;&nbsp;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string hueplusplus::LinHttpHandler::send </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>adr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>port</em> = <code>80</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function that sends a given message to the specified host and returns the response. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>String that contains the message that is sent to the specified address </td></tr>
    <tr><td class="paramname">adr</td><td>String that contains an ip or hostname in dotted decimal notation like "192.168.2.1" </td></tr>
    <tr><td class="paramname">port</td><td>Optional integer that specifies the port to which the request is sent to. Default is 80 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>String containing the response of the host </dd></dl>

<p>Implements <a class="el" href="classhueplusplus_1_1_i_http_handler.html#ab48c2539eac3d3af598525a6e8eab507">hueplusplus::IHttpHandler</a>.</p>

</div>
</div>
<a id="a29ff04a3ca7ca1051743763b2e30d3c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29ff04a3ca7ca1051743763b2e30d3c5">&#9670;&nbsp;</a></span>sendMulticast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; hueplusplus::LinHttpHandler::sendMulticast </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>adr</em> = <code>&quot;239.255.255.250&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>port</em> = <code>1900</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::chrono::steady_clock::duration&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>std::chrono::seconds(5)</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function that sends a multicast request with the specified message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>String that contains the request that is sent to the specified address </td></tr>
    <tr><td class="paramname">adr</td><td>Optional String that contains an ip or hostname in dotted decimal notation, default is "239.255.255.250" </td></tr>
    <tr><td class="paramname">port</td><td>Optional integer that specifies the port to which the request is sent. Default is 1900 </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional The timeout of the request. Default is 5 seconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Vector containing strings of each answer received </dd></dl>

<p>Implements <a class="el" href="classhueplusplus_1_1_i_http_handler.html#ae4de1ed96e6ecf1e41613366dc6fda32">hueplusplus::IHttpHandler</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/hueplusplus/<a class="el" href="_lin_http_handler_8h_source.html">LinHttpHandler.h</a></li>
<li>src/<a class="el" href="_lin_http_handler_8cpp.html">LinHttpHandler.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>