classhueplusplus_1_1_win_http_handler.html
27.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
<!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::WinHttpHandler 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
 <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_win_http_handler.html">WinHttpHandler</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classhueplusplus_1_1_win_http_handler-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">hueplusplus::WinHttpHandler Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Class to handle http requests and multicast requests on windows systems.
<a href="classhueplusplus_1_1_win_http_handler.html#details">More...</a></p>
<p><code>#include <<a class="el" href="_win_http_handler_8h_source.html">hueplusplus/WinHttpHandler.h</a>></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::WinHttpHandler:</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_win_http_handler__inherit__graph.png" border="0" usemap="#hueplusplus_1_1_win_http_handler_inherit__map" alt="Inheritance graph"/></div>
<map name="hueplusplus_1_1_win_http_handler_inherit__map" id="hueplusplus_1_1_win_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::WinHttpHandler:</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_win_http_handler__coll__graph.png" border="0" usemap="#hueplusplus_1_1_win_http_handler_coll__map" alt="Collaboration graph"/></div>
<map name="hueplusplus_1_1_win_http_handler_coll__map" id="hueplusplus_1_1_win_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:a222758a0c48a6ba0ef1a360a70575a8a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_win_http_handler.html#a222758a0c48a6ba0ef1a360a70575a8a">WinHttpHandler</a> ()</td></tr>
<tr class="memdesc:a222758a0c48a6ba0ef1a360a70575a8a"><td class="mdescLeft"> </td><td class="mdescRight">Ctor needed for initializing wsaData. <a href="#a222758a0c48a6ba0ef1a360a70575a8a">More...</a><br /></td></tr>
<tr class="separator:a222758a0c48a6ba0ef1a360a70575a8a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8005b6b984bb82259b5f1149fe0b97cd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_win_http_handler.html#a8005b6b984bb82259b5f1149fe0b97cd">~WinHttpHandler</a> ()</td></tr>
<tr class="memdesc:a8005b6b984bb82259b5f1149fe0b97cd"><td class="mdescLeft"> </td><td class="mdescRight">Dtor needed for wsaData cleanup. <a href="#a8005b6b984bb82259b5f1149fe0b97cd">More...</a><br /></td></tr>
<tr class="separator:a8005b6b984bb82259b5f1149fe0b97cd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1d3cd49cacaf22081bab27024cfcce33"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_win_http_handler.html#a1d3cd49cacaf22081bab27024cfcce33">send</a> (const std::string &msg, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a1d3cd49cacaf22081bab27024cfcce33"><td class="mdescLeft"> </td><td class="mdescRight">Function that sends a given message to the specified host and returns the response. <a href="#a1d3cd49cacaf22081bab27024cfcce33">More...</a><br /></td></tr>
<tr class="separator:a1d3cd49cacaf22081bab27024cfcce33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aceb94114ec78023a3cd45375205bbde5"><td class="memItemLeft" align="right" valign="top">std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_win_http_handler.html#aceb94114ec78023a3cd45375205bbde5">sendMulticast</a> (const std::string &msg, const std::string &adr="239.255.255.250", int port=1900, std::chrono::steady_clock::duration timeout=std::chrono::seconds(5)) const override</td></tr>
<tr class="memdesc:aceb94114ec78023a3cd45375205bbde5"><td class="mdescLeft"> </td><td class="mdescRight">Function that sends a multicast request with the specified message. <a href="#aceb94114ec78023a3cd45375205bbde5">More...</a><br /></td></tr>
<tr class="separator:aceb94114ec78023a3cd45375205bbde5"><td class="memSeparator" colspan="2"> </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="-"/> 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 </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"> </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"> </td></tr>
<tr class="memitem:ad5f51b25770345641c871f6efbc579aa inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#ad5f51b25770345641c871f6efbc579aa">sendGetHTTPBody</a> (const std::string &msg, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:ad5f51b25770345641c871f6efbc579aa inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a8a10fabfc57e4c60612bc279fae25050 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a8a10fabfc57e4c60612bc279fae25050">sendHTTPRequest</a> (const std::string &method, const std::string &uri, const std::string &contentType, const std::string &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a8a10fabfc57e4c60612bc279fae25050 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a601f2e4dfec195a094e30c2f22263cf9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a601f2e4dfec195a094e30c2f22263cf9">GETString</a> (const std::string &uri, const std::string &contentType, const std::string &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a601f2e4dfec195a094e30c2f22263cf9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a896da865ceb520bd9797948395fa203d inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a896da865ceb520bd9797948395fa203d">POSTString</a> (const std::string &uri, const std::string &contentType, const std::string &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a896da865ceb520bd9797948395fa203d inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a72f4a78eea5c4b1c8f23b074ee3648bf inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a72f4a78eea5c4b1c8f23b074ee3648bf">PUTString</a> (const std::string &uri, const std::string &contentType, const std::string &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a72f4a78eea5c4b1c8f23b074ee3648bf inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a139cbb13a19d3f12b8242bbe7e18b850 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a139cbb13a19d3f12b8242bbe7e18b850">DELETEString</a> (const std::string &uri, const std::string &contentType, const std::string &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a139cbb13a19d3f12b8242bbe7e18b850 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a059678ec7136be20fc5e8ca242929fe9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a059678ec7136be20fc5e8ca242929fe9">GETJson</a> (const std::string &uri, const nlohmann::json &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a059678ec7136be20fc5e8ca242929fe9 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:ad43b42bf599a59fdd89a4195ec891a02 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#ad43b42bf599a59fdd89a4195ec891a02">POSTJson</a> (const std::string &uri, const nlohmann::json &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:ad43b42bf599a59fdd89a4195ec891a02 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a602b5ea73d5788e2bb79a654906e5de0 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#a602b5ea73d5788e2bb79a654906e5de0">PUTJson</a> (const std::string &uri, const nlohmann::json &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:a602b5ea73d5788e2bb79a654906e5de0 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:abf5e5d6c49851f3a10c6b6378b835226 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="memItemLeft" align="right" valign="top">nlohmann::json </td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_http_handler.html#abf5e5d6c49851f3a10c6b6378b835226">DELETEJson</a> (const std::string &uri, const nlohmann::json &body, const std::string &adr, int port=80) const override</td></tr>
<tr class="memdesc:abf5e5d6c49851f3a10c6b6378b835226 inherit pub_methods_classhueplusplus_1_1_base_http_handler"><td class="mdescLeft"> </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"> </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="-"/> 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 </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"> </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"> </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 windows systems. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a222758a0c48a6ba0ef1a360a70575a8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a222758a0c48a6ba0ef1a360a70575a8a">◆ </a></span>WinHttpHandler()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">hueplusplus::WinHttpHandler::WinHttpHandler </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Ctor needed for initializing wsaData. </p>
</div>
</div>
<a id="a8005b6b984bb82259b5f1149fe0b97cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8005b6b984bb82259b5f1149fe0b97cd">◆ </a></span>~WinHttpHandler()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">hueplusplus::WinHttpHandler::~WinHttpHandler </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Dtor needed for wsaData cleanup. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1d3cd49cacaf22081bab27024cfcce33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d3cd49cacaf22081bab27024cfcce33">◆ </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::WinHttpHandler::send </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>adr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>port</em> = <code>80</code> </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="aceb94114ec78023a3cd45375205bbde5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceb94114ec78023a3cd45375205bbde5">◆ </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< std::string > hueplusplus::WinHttpHandler::sendMulticast </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>msg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>adr</em> = <code>"239.255.255.250"</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </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 </td>
<td class="paramname"><em>timeout</em> = <code>std::chrono::seconds(5)</code> </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="_win_http_handler_8h_source.html">WinHttpHandler.h</a></li>
<li>src/<a class="el" href="_win_http_handler_8cpp.html">WinHttpHandler.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>