-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdns__compat_8h.html
778 lines (721 loc) · 49.1 KB
/
dns__compat_8h.html
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libevent: event2/dns_compat.h File 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">libevent
 <span id="projectnumber">2.2.1</span>
</div>
<div id="projectbrief">Event notification library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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="dir_db160b4728e6067cf5f9cc14ec42c79d.html">event2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">dns_compat.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Potentially non-threadsafe versions of the functions in <a class="el" href="dns_8h.html" title="Provides a few APIs to use for resolving DNS names, and a facility for implementing simple DNS server...">dns.h</a>: provided only for backwards compatibility.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <event2/event-config.h></code><br />
<code>#include <<a class="el" href="util_8h_source.html">event2/util.h</a>></code><br />
<code>#include <event2/visibility.h></code><br />
</div>
<p><a href="dns__compat_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0def8fe56b2dee569e32ed685f4c22d8"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL struct evdns_server_port * </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a0def8fe56b2dee569e32ed685f4c22d8">evdns_add_server_port</a> (<a class="el" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> socket, int flags, <a class="el" href="dns_8h.html#a052802966f4c9d482279a05197dff005">evdns_request_callback_fn_type</a> callback, void *user_data)</td></tr>
<tr class="memdesc:a0def8fe56b2dee569e32ed685f4c22d8"><td class="mdescLeft"> </td><td class="mdescRight">As evdns_server_new_with_base. <a href="dns__compat_8h.html#a0def8fe56b2dee569e32ed685f4c22d8">More...</a><br /></td></tr>
<tr class="separator:a0def8fe56b2dee569e32ed685f4c22d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6c7b5be4d918882465ef75f4a1478124"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a6c7b5be4d918882465ef75f4a1478124">evdns_clear_nameservers_and_suspend</a> (void)</td></tr>
<tr class="memdesc:a6c7b5be4d918882465ef75f4a1478124"><td class="mdescLeft"> </td><td class="mdescRight">Remove all configured nameservers, and suspend all pending resolves. <a href="dns__compat_8h.html#a6c7b5be4d918882465ef75f4a1478124">More...</a><br /></td></tr>
<tr class="separator:a6c7b5be4d918882465ef75f4a1478124"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1d07cab0ca89d14da595552f05338e0b"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a1d07cab0ca89d14da595552f05338e0b">evdns_count_nameservers</a> (void)</td></tr>
<tr class="memdesc:a1d07cab0ca89d14da595552f05338e0b"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of configured nameservers. <a href="dns__compat_8h.html#a1d07cab0ca89d14da595552f05338e0b">More...</a><br /></td></tr>
<tr class="separator:a1d07cab0ca89d14da595552f05338e0b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae54990e958bb398b120a90d47796a2d8"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL struct evdns_base * </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#ae54990e958bb398b120a90d47796a2d8">evdns_get_global_base</a> (void)</td></tr>
<tr class="memdesc:ae54990e958bb398b120a90d47796a2d8"><td class="mdescLeft"> </td><td class="mdescRight">Return the global evdns_base created by <a class="el" href="event__compat_8h.html#aa72d84e78eb6f08dc580e6245c087cb6" title="Initialize the event API.">event_init()</a> and used by the other deprecated functions. <a href="dns__compat_8h.html#ae54990e958bb398b120a90d47796a2d8">More...</a><br /></td></tr>
<tr class="separator:ae54990e958bb398b120a90d47796a2d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad1b7dd2a9e58135f17a383331233b207"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#ad1b7dd2a9e58135f17a383331233b207">evdns_init</a> (void)</td></tr>
<tr class="memdesc:ad1b7dd2a9e58135f17a383331233b207"><td class="mdescLeft"> </td><td class="mdescRight">Initialize the asynchronous DNS library. <a href="dns__compat_8h.html#ad1b7dd2a9e58135f17a383331233b207">More...</a><br /></td></tr>
<tr class="separator:ad1b7dd2a9e58135f17a383331233b207"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae50b63ae4a40a756bc51c0aebe2ac23e"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#ae50b63ae4a40a756bc51c0aebe2ac23e">evdns_nameserver_add</a> (unsigned long int address)</td></tr>
<tr class="memdesc:ae50b63ae4a40a756bc51c0aebe2ac23e"><td class="mdescLeft"> </td><td class="mdescRight">Add a nameserver. <a href="dns__compat_8h.html#ae50b63ae4a40a756bc51c0aebe2ac23e">More...</a><br /></td></tr>
<tr class="separator:ae50b63ae4a40a756bc51c0aebe2ac23e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa40d812a3dc909b8728cc3647ef1247a"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#aa40d812a3dc909b8728cc3647ef1247a">evdns_nameserver_ip_add</a> (const char *ip_as_string)</td></tr>
<tr class="memdesc:aa40d812a3dc909b8728cc3647ef1247a"><td class="mdescLeft"> </td><td class="mdescRight">Add a nameserver. <a href="dns__compat_8h.html#aa40d812a3dc909b8728cc3647ef1247a">More...</a><br /></td></tr>
<tr class="separator:aa40d812a3dc909b8728cc3647ef1247a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4dd30bf34468410eb96757007523eb34"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a4dd30bf34468410eb96757007523eb34">evdns_resolv_conf_parse</a> (int flags, const char *const filename)</td></tr>
<tr class="memdesc:a4dd30bf34468410eb96757007523eb34"><td class="mdescLeft"> </td><td class="mdescRight">Parse a resolv.conf file. <a href="dns__compat_8h.html#a4dd30bf34468410eb96757007523eb34">More...</a><br /></td></tr>
<tr class="separator:a4dd30bf34468410eb96757007523eb34"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a438a9e699ff81b4a22cc072ad3c8e1c2"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a438a9e699ff81b4a22cc072ad3c8e1c2">evdns_resolve_ipv4</a> (const char *name, int flags, <a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> callback, void *ptr)</td></tr>
<tr class="memdesc:a438a9e699ff81b4a22cc072ad3c8e1c2"><td class="mdescLeft"> </td><td class="mdescRight">Lookup an A record for a given name. <a href="dns__compat_8h.html#a438a9e699ff81b4a22cc072ad3c8e1c2">More...</a><br /></td></tr>
<tr class="separator:a438a9e699ff81b4a22cc072ad3c8e1c2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a295f72a34e9744a7026261c078c03f13"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a295f72a34e9744a7026261c078c03f13">evdns_resolve_ipv6</a> (const char *name, int flags, <a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> callback, void *ptr)</td></tr>
<tr class="memdesc:a295f72a34e9744a7026261c078c03f13"><td class="mdescLeft"> </td><td class="mdescRight">Lookup an AAAA record for a given name. <a href="dns__compat_8h.html#a295f72a34e9744a7026261c078c03f13">More...</a><br /></td></tr>
<tr class="separator:a295f72a34e9744a7026261c078c03f13"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30c78f62647609846c2bb3222ebce87e"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a30c78f62647609846c2bb3222ebce87e">evdns_resolve_reverse</a> (const struct in_addr *in, int flags, <a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> callback, void *ptr)</td></tr>
<tr class="memdesc:a30c78f62647609846c2bb3222ebce87e"><td class="mdescLeft"> </td><td class="mdescRight">Lookup a PTR record for a given IP address. <a href="dns__compat_8h.html#a30c78f62647609846c2bb3222ebce87e">More...</a><br /></td></tr>
<tr class="separator:a30c78f62647609846c2bb3222ebce87e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a45bf87a8a77c7fba752836aab6a5a9cb"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a45bf87a8a77c7fba752836aab6a5a9cb">evdns_resolve_reverse_ipv6</a> (const struct in6_addr *in, int flags, <a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> callback, void *ptr)</td></tr>
<tr class="memdesc:a45bf87a8a77c7fba752836aab6a5a9cb"><td class="mdescLeft"> </td><td class="mdescRight">Lookup a PTR record for a given IPv6 address. <a href="dns__compat_8h.html#a45bf87a8a77c7fba752836aab6a5a9cb">More...</a><br /></td></tr>
<tr class="separator:a45bf87a8a77c7fba752836aab6a5a9cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa34fd9ec83c05361a23d484aa0debe7a"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#aa34fd9ec83c05361a23d484aa0debe7a">evdns_resume</a> (void)</td></tr>
<tr class="memdesc:aa34fd9ec83c05361a23d484aa0debe7a"><td class="mdescLeft"> </td><td class="mdescRight">Resume normal operation and continue any suspended resolve requests. <a href="dns__compat_8h.html#aa34fd9ec83c05361a23d484aa0debe7a">More...</a><br /></td></tr>
<tr class="separator:aa34fd9ec83c05361a23d484aa0debe7a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad43d4dab51d417dfd21299b615e64e71"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL void </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#ad43d4dab51d417dfd21299b615e64e71">evdns_search_add</a> (const char *domain)</td></tr>
<tr class="memdesc:ad43d4dab51d417dfd21299b615e64e71"><td class="mdescLeft"> </td><td class="mdescRight">Add a domain to the list of search domains. <a href="dns__compat_8h.html#ad43d4dab51d417dfd21299b615e64e71">More...</a><br /></td></tr>
<tr class="separator:ad43d4dab51d417dfd21299b615e64e71"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a717e59ca40403c0cd86091748bee5405"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL void </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a717e59ca40403c0cd86091748bee5405">evdns_search_clear</a> (void)</td></tr>
<tr class="memdesc:a717e59ca40403c0cd86091748bee5405"><td class="mdescLeft"> </td><td class="mdescRight">Clear the list of search domains. <a href="dns__compat_8h.html#a717e59ca40403c0cd86091748bee5405">More...</a><br /></td></tr>
<tr class="separator:a717e59ca40403c0cd86091748bee5405"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b9532165f3d175cd9bfa3cc64c397c2"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL void </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a0b9532165f3d175cd9bfa3cc64c397c2">evdns_search_ndots_set</a> (const int ndots)</td></tr>
<tr class="memdesc:a0b9532165f3d175cd9bfa3cc64c397c2"><td class="mdescLeft"> </td><td class="mdescRight">Set the 'ndots' parameter for searches. <a href="dns__compat_8h.html#a0b9532165f3d175cd9bfa3cc64c397c2">More...</a><br /></td></tr>
<tr class="separator:a0b9532165f3d175cd9bfa3cc64c397c2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2c7b199ba05d398d9901fed62c9467e5"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL int </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a2c7b199ba05d398d9901fed62c9467e5">evdns_set_option</a> (const char *option, const char *val, int flags)</td></tr>
<tr class="memdesc:a2c7b199ba05d398d9901fed62c9467e5"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of a configuration option. <a href="dns__compat_8h.html#a2c7b199ba05d398d9901fed62c9467e5">More...</a><br /></td></tr>
<tr class="separator:a2c7b199ba05d398d9901fed62c9467e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b3aece85850a3963493ddba2d778451"><td class="memItemLeft" align="right" valign="top">EVENT2_EXPORT_SYMBOL void </td><td class="memItemRight" valign="bottom"><a class="el" href="dns__compat_8h.html#a4b3aece85850a3963493ddba2d778451">evdns_shutdown</a> (int fail_requests)</td></tr>
<tr class="memdesc:a4b3aece85850a3963493ddba2d778451"><td class="mdescLeft"> </td><td class="mdescRight">Shut down the asynchronous DNS resolver and terminate all active requests. <a href="dns__compat_8h.html#a4b3aece85850a3963493ddba2d778451">More...</a><br /></td></tr>
<tr class="separator:a4b3aece85850a3963493ddba2d778451"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Potentially non-threadsafe versions of the functions in <a class="el" href="dns_8h.html" title="Provides a few APIs to use for resolving DNS names, and a facility for implementing simple DNS server...">dns.h</a>: provided only for backwards compatibility. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a0def8fe56b2dee569e32ed685f4c22d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0def8fe56b2dee569e32ed685f4c22d8">◆ </a></span>evdns_add_server_port()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL struct evdns_server_port* evdns_add_server_port </td>
<td>(</td>
<td class="paramtype"><a class="el" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> </td>
<td class="paramname"><em>socket</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="dns_8h.html#a052802966f4c9d482279a05197dff005">evdns_request_callback_fn_type</a> </td>
<td class="paramname"><em>callback</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>user_data</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>As evdns_server_new_with_base. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000025">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which even_base it uses. The recommended function is <a class="el" href="dns_8h.html#ad6a51e72173fcb3df380a49e8589635b" title="Create a new UDP DNS server port.">evdns_add_server_port_with_base()</a>.</dd></dl>
</div>
</div>
<a id="a6c7b5be4d918882465ef75f4a1478124"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c7b5be4d918882465ef75f4a1478124">◆ </a></span>evdns_clear_nameservers_and_suspend()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_clear_nameservers_and_suspend </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove all configured nameservers, and suspend all pending resolves. </p>
<p>Resolves will not necessarily be re-attempted until <a class="el" href="dns__compat_8h.html#aa34fd9ec83c05361a23d484aa0debe7a" title="Resume normal operation and continue any suspended resolve requests.">evdns_resume()</a> is called.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000014">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#af942ce8b6a65052f4b6def91a3390a61" title="Remove all configured nameservers, and suspend all pending resolves.">evdns_base_clear_nameservers_and_suspend()</a>.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#aa34fd9ec83c05361a23d484aa0debe7a" title="Resume normal operation and continue any suspended resolve requests.">evdns_resume()</a> </dd></dl>
</div>
</div>
<a id="a1d07cab0ca89d14da595552f05338e0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d07cab0ca89d14da595552f05338e0b">◆ </a></span>evdns_count_nameservers()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_count_nameservers </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the number of configured nameservers. </p>
<p>This returns the number of configured nameservers (not necessarily the number of running nameservers). This is useful for double-checking whether our calls to the various nameserver configuration functions have been successful.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a6811354521b4fe8df4c724d6cb9fb102" title="Get the number of configured nameservers.">evdns_base_count_nameservers()</a>.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>the number of configured nameservers </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#ae50b63ae4a40a756bc51c0aebe2ac23e" title="Add a nameserver.">evdns_nameserver_add()</a> </dd></dl>
</div>
</div>
<a id="ae54990e958bb398b120a90d47796a2d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae54990e958bb398b120a90d47796a2d8">◆ </a></span>evdns_get_global_base()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL struct evdns_base* evdns_get_global_base </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the global evdns_base created by <a class="el" href="event__compat_8h.html#aa72d84e78eb6f08dc580e6245c087cb6" title="Initialize the event API.">event_init()</a> and used by the other deprecated functions. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>This function is deprecated because use of the global evdns_base is error-prone. </dd></dl>
</div>
</div>
<a id="ad1b7dd2a9e58135f17a383331233b207"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1b7dd2a9e58135f17a383331233b207">◆ </a></span>evdns_init()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_init </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize the asynchronous DNS library. </p>
<p>This function initializes support for non-blocking name resolution by calling <a class="el" href="dns__compat_8h.html#a4dd30bf34468410eb96757007523eb34" title="Parse a resolv.conf file.">evdns_resolv_conf_parse()</a> on UNIX and evdns_config_windows_nameservers() on Windows.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>This function is deprecated because it always uses the current event base, and is easily confused by multiple calls to <a class="el" href="event__compat_8h.html#aa72d84e78eb6f08dc580e6245c087cb6" title="Initialize the event API.">event_init()</a>, and so is not safe for multithreaded use. Additionally, it allocates a global structure that only one thread can use. The replacement is <a class="el" href="dns_8h.html#afdcc359c412591d174f4d965afd18513" title="Initialize the asynchronous DNS library.">evdns_base_new()</a>.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#a4b3aece85850a3963493ddba2d778451" title="Shut down the asynchronous DNS resolver and terminate all active requests.">evdns_shutdown()</a> </dd></dl>
</div>
</div>
<a id="ae50b63ae4a40a756bc51c0aebe2ac23e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae50b63ae4a40a756bc51c0aebe2ac23e">◆ </a></span>evdns_nameserver_add()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_nameserver_add </td>
<td>(</td>
<td class="paramtype">unsigned long int </td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a nameserver. </p>
<p>The address should be an IPv4 address in network byte order. The type of address is chosen so that it matches in_addr.s_addr.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a53a242ec2ab15eef9e49e4286153d55a" title="Add a nameserver.">evdns_base_nameserver_add()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">address</td><td>an IP address in network byte order </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#aa40d812a3dc909b8728cc3647ef1247a" title="Add a nameserver.">evdns_nameserver_ip_add()</a> </dd></dl>
</div>
</div>
<a id="aa40d812a3dc909b8728cc3647ef1247a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa40d812a3dc909b8728cc3647ef1247a">◆ </a></span>evdns_nameserver_ip_add()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_nameserver_ip_add </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>ip_as_string</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a nameserver. </p>
<p>This wraps the <a class="el" href="dns__compat_8h.html#ae50b63ae4a40a756bc51c0aebe2ac23e" title="Add a nameserver.">evdns_nameserver_add()</a> function by parsing a string as an IP address and adds it as a nameserver.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000016">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a0a5f8e71a80a41d10e386f8cac816238" title="Add a nameserver by string address.">evdns_base_nameserver_ip_add()</a>.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#ae50b63ae4a40a756bc51c0aebe2ac23e" title="Add a nameserver.">evdns_nameserver_add()</a> </dd></dl>
</div>
</div>
<a id="a4dd30bf34468410eb96757007523eb34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dd30bf34468410eb96757007523eb34">◆ </a></span>evdns_resolv_conf_parse()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_resolv_conf_parse </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *const </td>
<td class="paramname"><em>filename</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Parse a resolv.conf file. </p>
<p>The 'flags' parameter determines what information is parsed from the resolv.conf file. See the man page for resolv.conf for the format of this file.</p>
<p>The following directives are not parsed from the file: sortlist, rotate, no-check-names, inet6, debug.</p>
<p>If this function encounters an error, the possible return values are: 1 = failed to open file, 2 = failed to stat file, 3 = file too large, 4 = out of memory, 5 = short read from file, 6 = no nameservers listed in the file</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000021">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a7e3a053e25ae7c045944a5db0947babb" title="Parse a resolv.conf file.">evdns_base_resolv_conf_parse()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">flags</td><td>any of DNS_OPTION_NAMESERVERS|DNS_OPTION_SEARCH|DNS_OPTION_MISC| DNS_OPTIONS_ALL </td></tr>
<tr><td class="paramname">filename</td><td>the path to the resolv.conf file </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or various positive error codes if an error occurred (see above) </dd></dl>
<dl class="section see"><dt>See also</dt><dd>resolv.conf(3), evdns_config_windows_nameservers() </dd></dl>
</div>
</div>
<a id="a438a9e699ff81b4a22cc072ad3c8e1c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a438a9e699ff81b4a22cc072ad3c8e1c2">◆ </a></span>evdns_resolve_ipv4()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_resolve_ipv4 </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> </td>
<td class="paramname"><em>callback</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Lookup an A record for a given name. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000017">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a4f8b11705fa285dffa661c7f55f86693" title="Lookup an A record for a given name.">evdns_base_resolve_ipv4()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>a DNS hostname </td></tr>
<tr><td class="paramname">flags</td><td>either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. </td></tr>
<tr><td class="paramname">callback</td><td>a callback function to invoke when the request is completed </td></tr>
<tr><td class="paramname">ptr</td><td>an argument to pass to the callback function </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#a295f72a34e9744a7026261c078c03f13" title="Lookup an AAAA record for a given name.">evdns_resolve_ipv6()</a>, <a class="el" href="dns__compat_8h.html#a30c78f62647609846c2bb3222ebce87e" title="Lookup a PTR record for a given IP address.">evdns_resolve_reverse()</a>, <a class="el" href="dns__compat_8h.html#a45bf87a8a77c7fba752836aab6a5a9cb" title="Lookup a PTR record for a given IPv6 address.">evdns_resolve_reverse_ipv6()</a> </dd></dl>
</div>
</div>
<a id="a295f72a34e9744a7026261c078c03f13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a295f72a34e9744a7026261c078c03f13">◆ </a></span>evdns_resolve_ipv6()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_resolve_ipv6 </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> </td>
<td class="paramname"><em>callback</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Lookup an AAAA record for a given name. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>a DNS hostname </td></tr>
<tr><td class="paramname">flags</td><td>either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. </td></tr>
<tr><td class="paramname">callback</td><td>a callback function to invoke when the request is completed </td></tr>
<tr><td class="paramname">ptr</td><td>an argument to pass to the callback function </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#a438a9e699ff81b4a22cc072ad3c8e1c2" title="Lookup an A record for a given name.">evdns_resolve_ipv4()</a>, <a class="el" href="dns__compat_8h.html#a30c78f62647609846c2bb3222ebce87e" title="Lookup a PTR record for a given IP address.">evdns_resolve_reverse()</a>, <a class="el" href="dns__compat_8h.html#a45bf87a8a77c7fba752836aab6a5a9cb" title="Lookup a PTR record for a given IPv6 address.">evdns_resolve_reverse_ipv6()</a> </dd></dl>
</div>
</div>
<a id="a30c78f62647609846c2bb3222ebce87e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30c78f62647609846c2bb3222ebce87e">◆ </a></span>evdns_resolve_reverse()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_resolve_reverse </td>
<td>(</td>
<td class="paramtype">const struct in_addr * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> </td>
<td class="paramname"><em>callback</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Lookup a PTR record for a given IP address. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000018">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a1f9cbcd4c017180e7d302056b3d5bbd4" title="Lookup a PTR record for a given IP address.">evdns_base_resolve_reverse()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>an IPv4 address </td></tr>
<tr><td class="paramname">flags</td><td>either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. </td></tr>
<tr><td class="paramname">callback</td><td>a callback function to invoke when the request is completed </td></tr>
<tr><td class="paramname">ptr</td><td>an argument to pass to the callback function </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#a45bf87a8a77c7fba752836aab6a5a9cb" title="Lookup a PTR record for a given IPv6 address.">evdns_resolve_reverse_ipv6()</a> </dd></dl>
</div>
</div>
<a id="a45bf87a8a77c7fba752836aab6a5a9cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45bf87a8a77c7fba752836aab6a5a9cb">◆ </a></span>evdns_resolve_reverse_ipv6()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_resolve_reverse_ipv6 </td>
<td>(</td>
<td class="paramtype">const struct in6_addr * </td>
<td class="paramname"><em>in</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="dns_8h.html#a43018959c4be1a9b16e4143c5e3ff556">evdns_callback_type</a> </td>
<td class="paramname"><em>callback</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Lookup a PTR record for a given IPv6 address. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000019">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a55843d1e90512bfbe8499d52642240cd" title="Lookup a PTR record for a given IPv6 address.">evdns_base_resolve_reverse_ipv6()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in</td><td>an IPv6 address </td></tr>
<tr><td class="paramname">flags</td><td>either 0, or DNS_QUERY_NO_SEARCH to disable searching for this query. </td></tr>
<tr><td class="paramname">callback</td><td>a callback function to invoke when the request is completed </td></tr>
<tr><td class="paramname">ptr</td><td>an argument to pass to the callback function </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#a45bf87a8a77c7fba752836aab6a5a9cb" title="Lookup a PTR record for a given IPv6 address.">evdns_resolve_reverse_ipv6()</a> </dd></dl>
</div>
</div>
<a id="aa34fd9ec83c05361a23d484aa0debe7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa34fd9ec83c05361a23d484aa0debe7a">◆ </a></span>evdns_resume()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_resume </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Resume normal operation and continue any suspended resolve requests. </p>
<p>Re-attempt resolves left in limbo after an earlier call to <a class="el" href="dns__compat_8h.html#a6c7b5be4d918882465ef75f4a1478124" title="Remove all configured nameservers, and suspend all pending resolves.">evdns_clear_nameservers_and_suspend()</a>.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000015">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a3ef3a20dd645e02d6dd5d3766ced9ce7" title="Resume normal operation and continue any suspended resolve requests.">evdns_base_resume()</a>.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#a6c7b5be4d918882465ef75f4a1478124" title="Remove all configured nameservers, and suspend all pending resolves.">evdns_clear_nameservers_and_suspend()</a> </dd></dl>
</div>
</div>
<a id="ad43d4dab51d417dfd21299b615e64e71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad43d4dab51d417dfd21299b615e64e71">◆ </a></span>evdns_search_add()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL void evdns_search_add </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>domain</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a domain to the list of search domains. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000023">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a8044de93700190d5ca6a6a0becdc4f6e" title="Add a domain to the list of search domains.">evdns_base_search_add()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">domain</td><td>the domain to be added to the search list </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a717e59ca40403c0cd86091748bee5405"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a717e59ca40403c0cd86091748bee5405">◆ </a></span>evdns_search_clear()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL void evdns_search_clear </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Clear the list of search domains. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000022">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a9211bdca966e8f4ce3270b29c1d72122" title="Clear the list of search domains.">evdns_base_search_clear()</a>. </dd></dl>
</div>
</div>
<a id="a0b9532165f3d175cd9bfa3cc64c397c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b9532165f3d175cd9bfa3cc64c397c2">◆ </a></span>evdns_search_ndots_set()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL void evdns_search_ndots_set </td>
<td>(</td>
<td class="paramtype">const int </td>
<td class="paramname"><em>ndots</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the 'ndots' parameter for searches. </p>
<p>Sets the number of dots which, when found in a name, causes the first query to be without any search domain.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000024">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#ae858583b1c9fdd1f7c99330bcdd68ba6" title="Set the 'ndots' parameter for searches.">evdns_base_search_ndots_set()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ndots</td><td>the new ndots parameter </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a2c7b199ba05d398d9901fed62c9467e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c7b199ba05d398d9901fed62c9467e5">◆ </a></span>evdns_set_option()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL int evdns_set_option </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>option</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>val</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>flags</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the value of a configuration option. </p>
<p>The currently available configuration options are:</p>
<p>ndots, timeout, max-timeouts, max-inflight, and attempts</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000020">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is <a class="el" href="dns_8h.html#a791b6fdc9f41bd62414574d85ae18cc8" title="Set the value of a configuration option.">evdns_base_set_option()</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">option</td><td>the name of the configuration option to be modified </td></tr>
<tr><td class="paramname">val</td><td>the value to be set </td></tr>
<tr><td class="paramname">flags</td><td>Ignored. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or -1 if an error occurred </dd></dl>
</div>
</div>
<a id="a4b3aece85850a3963493ddba2d778451"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b3aece85850a3963493ddba2d778451">◆ </a></span>evdns_shutdown()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">EVENT2_EXPORT_SYMBOL void evdns_shutdown </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>fail_requests</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Shut down the asynchronous DNS resolver and terminate all active requests. </p>
<p>If the 'fail_requests' option is enabled, all active requests will return an empty result with the error flag set to DNS_ERR_SHUTDOWN. Otherwise, the requests will be silently discarded.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000011">Deprecated:</a></b></dt><dd>This function is deprecated because it does not allow the caller to specify which evdns_base it applies to. The recommended function is evdns_base_shutdown().</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fail_requests</td><td>if zero, active requests will be aborted; if non-zero, active requests will return DNS_ERR_SHUTDOWN. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="dns__compat_8h.html#ad1b7dd2a9e58135f17a383331233b207" title="Initialize the asynchronous DNS library.">evdns_init()</a> </dd></dl>
</div>
</div>
</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.17
</small></address>
</body>
</html>