D7net Mini Sh3LL v1
Current File : //media/../../usr/share/doc/init/../logsave/../libapr1-dev/html/apr__network__io_8h_source.html |
<!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>Apache Portable Runtime: apr_network_io.h Source File</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">Apache Portable Runtime
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">apr_network_io.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="apr__network__io_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * this work for additional information regarding copyright ownership.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * the License. You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef APR_NETWORK_IO_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#define APR_NETWORK_IO_H</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * @file apr_network_io.h</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * @brief APR Network library</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="apr_8h.html">apr.h</a>"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="apr__pools_8h.html">apr_pools.h</a>"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="apr__file__io_8h.html">apr_file_io.h</a>"</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="apr__errno_8h.html">apr_errno.h</a>"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="apr__inherit_8h.html">apr_inherit.h</a>"</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="apr__perms__set_8h.html">apr_perms_set.h</a>"</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#if APR_HAVE_NETINET_IN_H</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <netinet/in.h></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#if APR_HAVE_SYS_UN_H</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <sys/un.h></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"></span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> * @defgroup apr_network_io Network Routines</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> * @ingroup APR </span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> * @{</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#ifndef APR_MAX_SECS_TO_LINGER</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">/** Maximum seconds to linger */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga8311c84f6946742188a6b9a45e92ea8e"> 50</a></span> <span class="preprocessor">#define APR_MAX_SECS_TO_LINGER 30</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#ifndef APRMAXHOSTLEN</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">/** Maximum hostname length */</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga7f5b3882209106bb407b1d518d6ad59d"> 55</a></span> <span class="preprocessor">#define APRMAXHOSTLEN 256</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor">#ifndef APR_ANYADDR</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">/** Default 'any' address */</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gadce1131c46b897ec63e9e4316a4631dd"> 60</a></span> <span class="preprocessor">#define APR_ANYADDR "0.0.0.0"</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"></span> </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> * @defgroup apr_sockopt Socket option definitions</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> * @{</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga6a807e7b78937ab74a4fcd6e99d76669"> 67</a></span> <span class="preprocessor">#define APR_SO_LINGER 1 </span><span class="comment">/**< Linger */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga0c54c5b98593d9ad2f8cc8836da7eae5"> 68</a></span> <span class="preprocessor">#define APR_SO_KEEPALIVE 2 </span><span class="comment">/**< Keepalive */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga2b30d26f69059692e97a59ec1d6db73b"> 69</a></span> <span class="preprocessor">#define APR_SO_DEBUG 4 </span><span class="comment">/**< Debug */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#gac3bf19cc28b43da9b9dc396c84914a0f"> 70</a></span> <span class="preprocessor">#define APR_SO_NONBLOCK 8 </span><span class="comment">/**< Non-blocking IO */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga90434074950efa1383d7c5649026a159"> 71</a></span> <span class="preprocessor">#define APR_SO_REUSEADDR 16 </span><span class="comment">/**< Reuse addresses */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga0e7ef8d3785eec5210ede9fd309db35f"> 72</a></span> <span class="preprocessor">#define APR_SO_SNDBUF 64 </span><span class="comment">/**< Send buffer */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga4ab9494893075c8db6ac26a997f41f0e"> 73</a></span> <span class="preprocessor">#define APR_SO_RCVBUF 128 </span><span class="comment">/**< Receive buffer */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga5fd72839e254ddec03ffb624c21fa564"> 74</a></span> <span class="preprocessor">#define APR_SO_DISCONNECTED 256 </span><span class="comment">/**< Disconnected */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga24db924d850dea792e92be7f8bc45cbd"> 75</a></span> <span class="preprocessor">#define APR_TCP_NODELAY 512 </span><span class="comment">/**< For SCTP sockets, this is mapped</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> * to STCP_NODELAY internally.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga7679a9e3114815eb6c31d26db707975d"> 78</a></span> <span class="preprocessor">#define APR_TCP_NOPUSH 1024 </span><span class="comment">/**< No push */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#gac9ee12e841eefaf86fabaae4a298adea"> 79</a></span> <span class="preprocessor">#define APR_RESET_NODELAY 2048 </span><span class="comment">/**< This flag is ONLY set internally</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> * when we set APR_TCP_NOPUSH with</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"> * APR_TCP_NODELAY set to tell us that</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"> * APR_TCP_NODELAY should be turned on</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"> * again when NOPUSH is turned off</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga73b6c80791c5148c2a416e03a8a1ff8a"> 85</a></span> <span class="preprocessor">#define APR_INCOMPLETE_READ 4096 </span><span class="comment">/**< Set on non-blocking sockets</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> * (timeout != 0) on which the</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * previous read() did not fill a buffer</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> * completely. the next apr_socket_recv() </span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> * will first call select()/poll() rather than</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> * going straight into read(). (Can also</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> * be set by an application to force a</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> * select()/poll() call before the next</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> * read, in cases where the app expects</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> * that an immediate read would fail.)</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga0c1544983845bf747b4a2a3facfb45e9"> 96</a></span> <span class="preprocessor">#define APR_INCOMPLETE_WRITE 8192 </span><span class="comment">/**< like APR_INCOMPLETE_READ, but for write</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> * @see APR_INCOMPLETE_READ</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#gae1126f69a19a23c484e3292b016375df"> 99</a></span> <span class="preprocessor">#define APR_IPV6_V6ONLY 16384 </span><span class="comment">/**< Don't accept IPv4 connections on an</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"> * IPv6 listening socket.</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#gaa81adac9b40a87f1d4c0c2f037e9af78"> 102</a></span> <span class="preprocessor">#define APR_TCP_DEFER_ACCEPT 32768 </span><span class="comment">/**< Delay accepting of new connections </span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> * until data is available.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> * @see apr_socket_accept_filter</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga6d86c537799f60d68d2016563beef15b"> 106</a></span> <span class="preprocessor">#define APR_SO_BROADCAST 65536 </span><span class="comment">/**< Allow broadcast</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="group__apr__sockopt.html#ga3e873ecb577af3c70736e762358858d9"> 108</a></span> <span class="preprocessor">#define APR_SO_FREEBIND 131072 </span><span class="comment">/**< Allow binding to addresses not owned</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> * by any interface</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"> */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"></span> </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment">/** @} */</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"></span> </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment">/** Define what type of socket shutdown should occur. */</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gae2130f1fa2d0db58c5c3c9c73d9b4009"> 115</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009a88d0661d35eea5319715d6ca69265b01"> 116</a></span>  <a class="code" href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009a88d0661d35eea5319715d6ca69265b01">APR_SHUTDOWN_READ</a>, <span class="comment">/**< no longer allow read request */</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009a5e335b392088e14df65d1bd5e0db7c46"> 117</a></span>  <a class="code" href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009a5e335b392088e14df65d1bd5e0db7c46">APR_SHUTDOWN_WRITE</a>, <span class="comment">/**< no longer allow write requests */</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009add172f55ff5ee7b930683a3903c99768"> 118</a></span>  <a class="code" href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009add172f55ff5ee7b930683a3903c99768">APR_SHUTDOWN_READWRITE</a> <span class="comment">/**< no longer allow read or write requests */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> } <a class="code" href="group__apr__network__io.html#gae2130f1fa2d0db58c5c3c9c73d9b4009">apr_shutdown_how_e</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga58aa30a94127b4a80f27fbf2e03fdfd8"> 121</a></span> <span class="preprocessor">#define APR_IPV4_ADDR_OK 0x01 </span><span class="comment">/**< @see apr_sockaddr_info_get() */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gaef1f70f9b969d25832a230f429837207"> 122</a></span> <span class="preprocessor">#define APR_IPV6_ADDR_OK 0x02 </span><span class="comment">/**< @see apr_sockaddr_info_get() */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#if (!APR_HAVE_IN_ADDR)</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> * We need to make sure we always have an in_addr type, so APR will just</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> * define it ourselves, if the platform doesn't provide it.</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="structin__addr.html"> 129</a></span> <span class="keyword">struct </span><a class="code" href="structin__addr.html">in_addr</a> {</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="structin__addr.html#a1bf09b20f0531edf5da627f712561108"> 130</a></span>  apr_uint32_t <a class="code" href="structin__addr.html#a1bf09b20f0531edf5da627f712561108">s_addr</a>; <span class="comment">/**< storage to hold the IP# */</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> };</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"></span> </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment">/** @def APR_INADDR_NONE</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> * Not all platforms have a real INADDR_NONE. This macro replaces</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> * INADDR_NONE on all platforms.</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#ifdef INADDR_NONE</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="preprocessor">#define APR_INADDR_NONE INADDR_NONE</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga16eb7ee55ff87a5093f2114ea5351217"> 141</a></span> <span class="preprocessor">#define APR_INADDR_NONE ((unsigned int) 0xffffffff)</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"></span> </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> * @def APR_INET</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> * Not all platforms have these defined, so we'll define them here</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> * The default values come from FreeBSD 4.1.1</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gaa96e8e8dbf92bc77643a4032017b3d67"> 149</a></span> <span class="preprocessor">#define APR_INET AF_INET</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment">/** @def APR_UNSPEC</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> * Let the system decide which address family to use</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor">#ifdef AF_UNSPEC</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="preprocessor">#define APR_UNSPEC AF_UNSPEC</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gaa7a33b17a7d0820b09ef489bd3328f85"> 156</a></span> <span class="preprocessor">#define APR_UNSPEC 0</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#if APR_HAVE_IPV6</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">/** @def APR_INET6</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment">* IPv6 Address Family. Not all platforms may have this defined.</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="preprocessor">#define APR_INET6 AF_INET6</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="preprocessor">#if APR_HAVE_SOCKADDR_UN</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor">#if defined (AF_UNIX)</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="preprocessor">#define APR_UNIX AF_UNIX</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor">#elif defined(AF_LOCAL)</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="preprocessor">#define APR_UNIX AF_LOCAL</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="preprocessor">#error "Neither AF_UNIX nor AF_LOCAL is defined"</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor">#else </span><span class="comment">/* !APR_HAVE_SOCKADDR_UN */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor">#if defined (AF_UNIX)</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor">#define APR_UNIX AF_UNIX</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="preprocessor">#elif defined(AF_LOCAL)</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#define APR_UNIX AF_LOCAL</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="preprocessor">#else</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment">/* TODO: Use a smarter way to detect unique APR_UNIX value */</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="preprocessor">#define APR_UNIX 1234</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"></span> </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"> * @defgroup IP_Proto IP Protocol Definitions for use when creating sockets</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"> * @{</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="group___i_p___proto.html#gad231c935f9f9746ca43b46cdcf80338e"> 189</a></span> <span class="preprocessor">#define APR_PROTO_TCP 6 </span><span class="comment">/**< TCP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="group___i_p___proto.html#ga05acc4775ee3f3a637f97c904b8ebd7d"> 190</a></span> <span class="preprocessor">#define APR_PROTO_UDP 17 </span><span class="comment">/**< UDP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="group___i_p___proto.html#ga89b4fd2811d13e945e937f890b750727"> 191</a></span> <span class="preprocessor">#define APR_PROTO_SCTP 132 </span><span class="comment">/**< SCTP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment">/** @} */</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment"></span> </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment"> * Enum used to denote either the local and remote endpoint of a</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"> * connection.</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga1982f44f48fdf00a8bd754bc7b773edc"> 198</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gga1982f44f48fdf00a8bd754bc7b773edca6c23a4bf48b8f93dff08adf827382616"> 199</a></span>  <a class="code" href="group__apr__network__io.html#gga1982f44f48fdf00a8bd754bc7b773edca6c23a4bf48b8f93dff08adf827382616">APR_LOCAL</a>, <span class="comment">/**< Socket information for local end of connection */</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gga1982f44f48fdf00a8bd754bc7b773edcaeb8be70b031f06a513ac0ebcaa5bac8a"> 200</a></span>  <a class="code" href="group__apr__network__io.html#gga1982f44f48fdf00a8bd754bc7b773edcaeb8be70b031f06a513ac0ebcaa5bac8a">APR_REMOTE</a> <span class="comment">/**< Socket information for remote end of connection */</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> } <a class="code" href="group__apr__network__io.html#ga1982f44f48fdf00a8bd754bc7b773edc">apr_interface_e</a>;</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"></span> </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> * The specific declaration of inet_addr's ... some platforms fall back</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> * inet_network (this is not good, but necessary)</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="preprocessor">#if APR_HAVE_INET_ADDR</span></div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="preprocessor">#define apr_inet_addr inet_addr</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor">#elif APR_HAVE_INET_NETWORK </span><span class="comment">/* only DGUX, as far as I know */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> * @warning</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"> * not generally safe... inet_network() and inet_addr() perform</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> * different functions */</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="preprocessor">#define apr_inet_addr inet_network</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"></span> </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment">/** A structure to represent sockets */</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3"> 219</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> <a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a>;<span class="comment"></span></div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment"> * A structure to encapsulate headers and trailers for apr_socket_sendfile</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga97887d5358a9c79c241ccafab61d8ff5"> 223</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__hdtr__t.html">apr_hdtr_t</a> <a class="code" href="structapr__hdtr__t.html">apr_hdtr_t</a>;<span class="comment"></span></div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment">/** A structure to represent in_addr */</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gad30d6c55a354a9a2e0a8747abb0c8176"> 225</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structin__addr.html">in_addr</a> <a class="code" href="structin__addr.html">apr_in_addr_t</a>;<span class="comment"></span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment">/** A structure to represent an IP subnet */</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gac86ee04eb80f938902095d1d0a67c324"> 227</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__apr__network__io.html#gac86ee04eb80f938902095d1d0a67c324">apr_ipsubnet_t</a> <a class="code" href="group__apr__network__io.html#gac86ee04eb80f938902095d1d0a67c324">apr_ipsubnet_t</a>;</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="comment"></span> </div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment">/** @remark use apr_uint16_t just in case some system has a short that isn't 16 bits... */</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03"> 230</a></span> <span class="keyword">typedef</span> apr_uint16_t <a class="code" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a>;</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"></span> </div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment">/** @remark It's defined here as I think it should all be platform safe...</span></div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> * @see apr_sockaddr_t</span></div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="group__apr__network__io.html#ga373fb6f32d0875c5deb648b779c8a709"> 235</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a>;<span class="comment"></span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="comment"> * APRs socket address type, used to ensure protocol independence</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html"> 239</a></span> <span class="keyword">struct </span><a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> {<span class="comment"></span></div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"> /** The pool to use... */</span></div>
<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a5f2d72a6a181cf2f54ba7c922aa0dfab"> 241</a></span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *<a class="code" href="structapr__sockaddr__t.html#a5f2d72a6a181cf2f54ba7c922aa0dfab">pool</a>;<span class="comment"></span></div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> /** The hostname */</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a8e675775b407f25674aaa938a40de9cd"> 243</a></span>  <span class="keywordtype">char</span> *<a class="code" href="structapr__sockaddr__t.html#a8e675775b407f25674aaa938a40de9cd">hostname</a>;<span class="comment"></span></div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"> /** Either a string of the port number or the service name for the port */</span></div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a668335161a8347b9a34c600bff80b52f"> 245</a></span>  <span class="keywordtype">char</span> *<a class="code" href="structapr__sockaddr__t.html#a668335161a8347b9a34c600bff80b52f">servname</a>;<span class="comment"></span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> /** The numeric port */</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a174c19138de9c208f13ed71b5892e505"> 247</a></span>  <a class="code" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a> <a class="code" href="structapr__sockaddr__t.html#a174c19138de9c208f13ed71b5892e505">port</a>;<span class="comment"></span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"> /** The family */</span></div>
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#ac17f6e803928cfc29069a6e62dcb3a52"> 249</a></span>  apr_int32_t <a class="code" href="structapr__sockaddr__t.html#ac17f6e803928cfc29069a6e62dcb3a52">family</a>;<span class="comment"></span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment"> /** How big is the sockaddr we're using? */</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#aef1d2a482f85eeab7b6bf0a7732a087a"> 251</a></span>  apr_socklen_t <a class="code" href="structapr__sockaddr__t.html#aef1d2a482f85eeab7b6bf0a7732a087a">salen</a>;<span class="comment"></span></div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment"> /** How big is the ip address structure we're using? */</span></div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a81be21b2eb968b83ca36183213c99867"> 253</a></span>  <span class="keywordtype">int</span> <a class="code" href="structapr__sockaddr__t.html#a81be21b2eb968b83ca36183213c99867">ipaddr_len</a>;<span class="comment"></span></div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment"> /** How big should the address buffer be? 16 for v4 or 46 for v6</span></div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"> * used in inet_ntop... */</span></div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a8f7cda5562e904a1398ed5a4a6f0a9d9"> 256</a></span>  <span class="keywordtype">int</span> <a class="code" href="structapr__sockaddr__t.html#a8f7cda5562e904a1398ed5a4a6f0a9d9">addr_str_len</a>;<span class="comment"></span></div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> /** This points to the IP address structure within the appropriate</span></div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="comment"> * sockaddr structure. */</span></div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a6e1b71121ada4047acde36c6777b5442"> 259</a></span>  <span class="keywordtype">void</span> *<a class="code" href="structapr__sockaddr__t.html#a6e1b71121ada4047acde36c6777b5442">ipaddr_ptr</a>;<span class="comment"></span></div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment"> /** If multiple addresses were found by apr_sockaddr_info_get(), this </span></div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment"> * points to a representation of the next address. */</span></div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a774835c6b8e3adf255b752e8b126c434"> 262</a></span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *<a class="code" href="structapr__sockaddr__t.html#a774835c6b8e3adf255b752e8b126c434">next</a>;<span class="comment"></span></div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"> /** Union of either IPv4 or IPv6 sockaddr. */</span></div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">union </span>{<span class="comment"></span></div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment"> /** IPv4 sockaddr structure */</span></div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="structapr__sockaddr__t.html#a7d5cf0290260c3c448360fc819b28714"> 266</a></span>  <span class="keyword">struct </span>sockaddr_in <a class="code" href="structapr__sockaddr__t.html#a7d5cf0290260c3c448360fc819b28714">sin</a>;</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="preprocessor">#if APR_HAVE_IPV6</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="comment"> /** IPv6 sockaddr structure */</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keyword">struct </span>sockaddr_in6 sin6;</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="preprocessor">#if APR_HAVE_SA_STORAGE</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="comment"> /** Placeholder to ensure that the size of this union is not</span></div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="comment"> * dependent on whether APR_HAVE_IPV6 is defined. */</span></div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keyword">struct </span>sockaddr_storage sas;</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="preprocessor">#if APR_HAVE_SOCKADDR_UN</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment"> /** Unix domain socket sockaddr structure */</span></div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">struct </span>sockaddr_un unx;</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  } <a class="code" href="structapr__sockaddr__t.html#a6aa3866aed7f527bf4f988b6dc9b5675">sa</a>;</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> };</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="preprocessor">#if APR_HAS_SENDFILE</span></div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment">/** </span></div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment"> * Support reusing the socket on platforms which support it (from disconnect,</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment"> * specifically Win32.</span></div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment"> * @remark Optional flag passed into apr_socket_sendfile() </span></div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="preprocessor">#define APR_SENDFILE_DISCONNECT_SOCKET 1</span></div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment"></span> </div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment">/** A structure to encapsulate headers and trailers for apr_socket_sendfile */</span></div>
<div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="structapr__hdtr__t.html"> 293</a></span> <span class="keyword">struct </span><a class="code" href="structapr__hdtr__t.html">apr_hdtr_t</a> {<span class="comment"></span></div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="comment"> /** An iovec to store the headers sent before the file. */</span></div>
<div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="structapr__hdtr__t.html#afc2035a3ef314f9aa6ae3aabe7c0dc72"> 295</a></span>  <span class="keyword">struct </span>iovec* <a class="code" href="structapr__hdtr__t.html#afc2035a3ef314f9aa6ae3aabe7c0dc72">headers</a>;<span class="comment"></span></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment"> /** number of headers in the iovec */</span></div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="structapr__hdtr__t.html#a8915ade68ef06f4d23005ec0f81e9305"> 297</a></span>  <span class="keywordtype">int</span> <a class="code" href="structapr__hdtr__t.html#a8915ade68ef06f4d23005ec0f81e9305">numheaders</a>;<span class="comment"></span></div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment"> /** An iovec to store the trailers sent after the file. */</span></div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="structapr__hdtr__t.html#a538387cfa0065abc2bfa6ba7393fa3ee"> 299</a></span>  <span class="keyword">struct </span>iovec* <a class="code" href="structapr__hdtr__t.html#a538387cfa0065abc2bfa6ba7393fa3ee">trailers</a>;<span class="comment"></span></div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="comment"> /** number of trailers in the iovec */</span></div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="structapr__hdtr__t.html#a9468659de891a5672b0b84cf442e9c7b"> 301</a></span>  <span class="keywordtype">int</span> <a class="code" href="structapr__hdtr__t.html#a9468659de891a5672b0b84cf442e9c7b">numtrailers</a>;</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> };</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  </div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment">/* function definitions */</span></div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment"></span> </div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment"> * Create a socket.</span></div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="comment"> * @param new_sock The new socket that has been set up.</span></div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="comment"> * @param family The address family of the socket (e.g., APR_INET).</span></div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="comment"> * @param type The type of the socket (e.g., SOCK_STREAM).</span></div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment"> * @param protocol The protocol of the socket (e.g., APR_PROTO_TCP).</span></div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="comment"> * @param cont The pool for the apr_socket_t and associated storage.</span></div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="comment"> * @note The pool will be used by various functions that operate on the</span></div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="comment"> * socket. The caller must ensure that it is not used by other threads</span></div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment"> * at the same time.</span></div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga46b81e267ef80e64510d4e83880a91bd">apr_socket_create</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> **new_sock, </div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordtype">int</span> family, <span class="keywordtype">int</span> type,</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordtype">int</span> protocol,</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="comment"></span> </div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="comment"> * Shutdown either reading, writing, or both sides of a socket.</span></div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="comment"> * @param thesocket The socket to close </span></div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="comment"> * @param how How to shutdown the socket. One of:</span></div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment"> * APR_SHUTDOWN_READ no longer allow read requests</span></div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="comment"> * APR_SHUTDOWN_WRITE no longer allow write requests</span></div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment"> * APR_SHUTDOWN_READWRITE no longer allow read or write requests </span></div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="comment"> * @see apr_shutdown_how_e</span></div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="comment"> * @remark This does not actually close the socket descriptor, it just</span></div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="comment"> * controls which calls are still valid on the socket.</span></div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gac5aea857a50c493f840c48b930abc48e">apr_socket_shutdown</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *thesocket,</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="code" href="group__apr__network__io.html#gae2130f1fa2d0db58c5c3c9c73d9b4009">apr_shutdown_how_e</a> how);</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> <span class="comment"></span> </div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="comment"> * Close a socket.</span></div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="comment"> * @param thesocket The socket to close </span></div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga88779f243ce19a2563544aee81894e6d">apr_socket_close</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *thesocket);</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="comment"></span> </div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment"> * Bind the socket to its associated port</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="comment"> * @param sock The socket to bind </span></div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="comment"> * @param sa The socket address to bind to</span></div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="comment"> * @remark This may be where we will find out if there is any other process</span></div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="comment"> * using the selected port.</span></div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga512882c9979c2b9cad7cbc2508516d65">apr_socket_bind</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sa);</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="comment"></span> </div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="comment"> * Listen to a bound socket for connections.</span></div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="comment"> * @param sock The socket to listen on </span></div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <span class="comment"> * @param backlog The number of outstanding connections allowed in the sockets</span></div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="comment"> * listen queue. If this value is less than zero, the listen</span></div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment"> * queue size is set to zero. </span></div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga154bcee918f6f01fe0373359dd74b0c4">apr_socket_listen</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  apr_int32_t backlog);</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="comment"></span> </div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="comment"> * Accept a new connection request</span></div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <span class="comment"> * @param new_sock A copy of the socket that is connected to the socket that</span></div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="comment"> * made the connection request. This is the socket which should</span></div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment"> * be used for all future communication.</span></div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="comment"> * @param sock The socket we are listening on.</span></div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment"> * @param connection_pool The pool for the new socket.</span></div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="comment"> * @note The pool will be used by various functions that operate on the</span></div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="comment"> * socket. The caller must ensure that it is not used by other threads</span></div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> <span class="comment"> * at the same time.</span></div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga1d62711ca77ccc0f6413a298a47876da">apr_socket_accept</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> **new_sock, </div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *connection_pool);</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment"></span> </div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="comment"> * Issue a connection request to a socket either on the same machine </span></div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> <span class="comment"> * or a different one.</span></div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="comment"> * @param sock The socket we wish to use for our side of the connection </span></div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="comment"> * @param sa The address of the machine we wish to connect to.</span></div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga8e58bd8112ed2ce5004487918cd9275e">apr_socket_connect</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sa);</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="comment"></span> </div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="comment"> * Determine whether the receive part of the socket has been closed by</span></div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <span class="comment"> * the peer (such that a subsequent call to apr_socket_read would</span></div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="comment"> * return APR_EOF), if the socket's receive buffer is empty. This</span></div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="comment"> * function does not block waiting for I/O.</span></div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="comment"> * @param sock The socket to check</span></div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="comment"> * @param atreadeof If APR_SUCCESS is returned, *atreadeof is set to</span></div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="comment"> * non-zero if a subsequent read would return APR_EOF</span></div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> <span class="comment"> * @return an error is returned if it was not possible to determine the</span></div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <span class="comment"> * status, in which case *atreadeof is not changed.</span></div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gabfcb1fe4447921e5b86d395126b5d6f0">apr_socket_atreadeof</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keywordtype">int</span> *atreadeof);</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment"></span> </div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="comment"> * Create apr_sockaddr_t from hostname, address family, and port.</span></div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"> * @param sa The new apr_sockaddr_t.</span></div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"> * @param hostname The hostname or numeric address string to resolve/parse, or</span></div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> <span class="comment"> * NULL to build an address that corresponds to 0.0.0.0 or ::</span></div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> <span class="comment"> * or in case of APR_UNIX family it is absolute socket filename.</span></div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="comment"> * @param family The address family to use, or APR_UNSPEC if the system should </span></div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span> <span class="comment"> * decide.</span></div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="comment"> * @param port The port number.</span></div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="comment"> * @param flags Special processing flags:</span></div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="comment"> * APR_IPV4_ADDR_OK first query for IPv4 addresses; only look</span></div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> <span class="comment"> * for IPv6 addresses if the first query failed;</span></div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span> <span class="comment"> * only valid if family is APR_UNSPEC and hostname</span></div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> <span class="comment"> * isn't NULL; mutually exclusive with</span></div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="comment"> * APR_IPV6_ADDR_OK</span></div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> <span class="comment"> * APR_IPV6_ADDR_OK first query for IPv6 addresses; only look</span></div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment"> * for IPv4 addresses if the first query failed;</span></div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="comment"> * only valid if family is APR_UNSPEC and hostname</span></div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="comment"> * isn't NULL and APR_HAVE_IPV6; mutually exclusive</span></div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="comment"> * with APR_IPV4_ADDR_OK</span></div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> <span class="comment"> * @param p The pool for the apr_sockaddr_t and associated storage.</span></div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gaa2f399ca2b60b35c0abf7630298c6c9f">apr_sockaddr_info_get</a>(<a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> **sa,</div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *hostname,</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  apr_int32_t family,</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <a class="code" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a> port,</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  apr_int32_t flags,</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p);</div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment"></span> </div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> <span class="comment"> * Copy apr_sockaddr_t src to dst on pool p.</span></div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span> <span class="comment"> * @param dst The destination apr_sockaddr_t.</span></div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="comment"> * @param src The source apr_sockaddr_t.</span></div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> <span class="comment"> * @param p The pool for the apr_sockaddr_t and associated storage.</span></div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga4175809cd324a0b81951bd656fabbc83">apr_sockaddr_info_copy</a>(<a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> **dst,</div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keyword">const</span> <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *src,</div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p);</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> <span class="comment"></span> </div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> <span class="comment"> * Look up the host name from an apr_sockaddr_t.</span></div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> <span class="comment"> * @param hostname The hostname.</span></div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="comment"> * @param sa The apr_sockaddr_t.</span></div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span> <span class="comment"> * @param flags Special processing flags.</span></div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span> <span class="comment"> * @remark Results can vary significantly between platforms</span></div>
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span> <span class="comment"> * when processing wildcard socket addresses.</span></div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga7a56fd9573b942753738ec30b887c9de">apr_getnameinfo</a>(<span class="keywordtype">char</span> **hostname,</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sa,</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  apr_int32_t flags);</div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="comment"></span> </div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span> <span class="comment"> * Parse hostname/IP address with scope id and port.</span></div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> <span class="comment"> * Any of the following strings are accepted:</span></div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="comment"> * 8080 (just the port number)</span></div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span> <span class="comment"> * www.apache.org (just the hostname)</span></div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> <span class="comment"> * www.apache.org:8080 (hostname and port number)</span></div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="comment"> * [fe80::1]:80 (IPv6 numeric address string only)</span></div>
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="comment"> * [fe80::1%eth0] (IPv6 numeric address string and scope id)</span></div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="comment"> * Invalid strings:</span></div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="comment"> * (empty string)</span></div>
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> <span class="comment"> * [abc] (not valid IPv6 numeric address string)</span></div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> <span class="comment"> * abc:65536 (invalid port number)</span></div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span> <span class="comment"> * @param addr The new buffer containing just the hostname. On output, *addr </span></div>
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span> <span class="comment"> * will be NULL if no hostname/IP address was specfied.</span></div>
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span> <span class="comment"> * @param scope_id The new buffer containing just the scope id. On output, </span></div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> <span class="comment"> * *scope_id will be NULL if no scope id was specified.</span></div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <span class="comment"> * @param port The port number. On output, *port will be 0 if no port was </span></div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> <span class="comment"> * specified.</span></div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> <span class="comment"> * ### FIXME: 0 is a legal port (per RFC 1700). this should</span></div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="comment"> * ### return something besides zero if the port is missing.</span></div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment"> * @param str The input string to be parsed.</span></div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <span class="comment"> * @param p The pool from which *addr and *scope_id are allocated.</span></div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="comment"> * @remark If scope id shouldn't be allowed, check for scope_id != NULL in </span></div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span> <span class="comment"> * addition to checking the return code. If addr/hostname should be </span></div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span> <span class="comment"> * required, check for addr == NULL in addition to checking the </span></div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span> <span class="comment"> * return code.</span></div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga90c31b2f012c6b1e2d842a96c4431de3">apr_parse_addr_port</a>(<span class="keywordtype">char</span> **addr,</div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="keywordtype">char</span> **scope_id,</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <a class="code" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a> *port,</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *str,</div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p);</div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="comment"></span> </div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="comment"> * Get name of the current machine</span></div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="comment"> * @param buf A buffer to store the hostname in.</span></div>
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span> <span class="comment"> * @param len The maximum length of the hostname that can be stored in the</span></div>
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <span class="comment"> * buffer provided. The suggested length is APRMAXHOSTLEN + 1.</span></div>
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> <span class="comment"> * @param cont The pool to use.</span></div>
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span> <span class="comment"> * @remark If the buffer was not large enough, an error will be returned.</span></div>
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga6bd3d656ba935ca428075f477b8a6f8b">apr_gethostname</a>(<span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> len, <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *cont);</div>
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> <span class="comment"></span> </div>
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <span class="comment"> * Return the data associated with the current socket</span></div>
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> <span class="comment"> * @param data The user data associated with the socket.</span></div>
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> <span class="comment"> * @param key The key to associate with the user data.</span></div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="comment"> * @param sock The currently open socket.</span></div>
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gae76b48d0224a608b4ddb8bd00582eaa7">apr_socket_data_get</a>(<span class="keywordtype">void</span> **data, <span class="keyword">const</span> <span class="keywordtype">char</span> *key,</div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock);</div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> <span class="comment"></span> </div>
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> <span class="comment"> * Set the data associated with the current socket.</span></div>
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <span class="comment"> * @param sock The currently open socket.</span></div>
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span> <span class="comment"> * @param data The user data to associate with the socket.</span></div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="comment"> * @param key The key to associate with the data.</span></div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="comment"> * @param cleanup The cleanup to call when the socket is destroyed.</span></div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gafec197f3aa9a495801cdf7892ff8dcb5">apr_socket_data_set</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, <span class="keywordtype">void</span> *data,</div>
<div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *key,</div>
<div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> (*cleanup)(<span class="keywordtype">void</span>*));</div>
<div class="line"><a name="l00521"></a><span class="lineno"> 521</span> <span class="comment"></span> </div>
<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <span class="comment"> * Send data over a network.</span></div>
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="comment"> * @param sock The socket to send the data over.</span></div>
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> <span class="comment"> * @param buf The buffer which contains the data to be sent. </span></div>
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span> <span class="comment"> * @param len On entry, the number of bytes to send; on exit, the number</span></div>
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="comment"> * of bytes sent.</span></div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span> <span class="comment"> * @remark</span></div>
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="comment"> * This functions acts like a blocking write by default. To change </span></div>
<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> <span class="comment"> * this behavior, use apr_socket_timeout_set() or the APR_SO_NONBLOCK</span></div>
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span> <span class="comment"> * socket option.</span></div>
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="comment"> * It is possible for both bytes to be sent and an error to be returned.</span></div>
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> <span class="comment"> * APR_EINTR is never returned.</span></div>
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga943268245cf59f6ff8cf1458c9a9ba8d">apr_socket_send</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, <span class="keyword">const</span> <span class="keywordtype">char</span> *buf, </div>
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  apr_size_t *len);</div>
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="comment"></span> </div>
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="comment"> * Send multiple buffers over a network.</span></div>
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="comment"> * @param sock The socket to send the data over.</span></div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="comment"> * @param vec The array of iovec structs containing the data to send </span></div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="comment"> * @param nvec The number of iovec structs in the array</span></div>
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="comment"> * @param len Receives the number of bytes actually written</span></div>
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> <span class="comment"> * @remark</span></div>
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="comment"> * This functions acts like a blocking write by default. To change </span></div>
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="comment"> * this behavior, use apr_socket_timeout_set() or the APR_SO_NONBLOCK</span></div>
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="comment"> * socket option.</span></div>
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="comment"> * The number of bytes actually sent is stored in argument 4.</span></div>
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span> <span class="comment"> * It is possible for both bytes to be sent and an error to be returned.</span></div>
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="comment"> * APR_EINTR is never returned.</span></div>
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00559"></a><span class="lineno"> 559</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga99ece70c34a7a332daa3941de3950c64">apr_socket_sendv</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="keyword">const</span> <span class="keyword">struct</span> iovec *vec,</div>
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  apr_int32_t nvec, apr_size_t *len);</div>
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> <span class="comment"></span> </div>
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="comment"> * @param sock The socket to send from</span></div>
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span> <span class="comment"> * @param where The apr_sockaddr_t describing where to send the data</span></div>
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <span class="comment"> * @param flags The flags to use</span></div>
<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> <span class="comment"> * @param buf The data to send</span></div>
<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> <span class="comment"> * @param len The length of the data to send</span></div>
<div class="line"><a name="l00570"></a><span class="lineno"> 570</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00571"></a><span class="lineno"> 571</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga03ae34bc5712dac2b3fdee39e5f87be3">apr_socket_sendto</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *where,</div>
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  apr_int32_t flags, <span class="keyword">const</span> <span class="keywordtype">char</span> *buf, </div>
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  apr_size_t *len);</div>
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> <span class="comment"></span> </div>
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="comment"> * Read data from a socket. On success, the address of the peer from</span></div>
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> <span class="comment"> * which the data was sent is copied into the @a from parameter, and the</span></div>
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> <span class="comment"> * @a len parameter is updated to give the number of bytes written to</span></div>
<div class="line"><a name="l00580"></a><span class="lineno"> 580</span> <span class="comment"> * @a buf.</span></div>
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span> <span class="comment"> * @param from Updated with the address from which the data was received</span></div>
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span> <span class="comment"> * @param sock The socket to use</span></div>
<div class="line"><a name="l00584"></a><span class="lineno"> 584</span> <span class="comment"> * @param flags The flags to use</span></div>
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span> <span class="comment"> * @param buf The buffer to use</span></div>
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> <span class="comment"> * @param len The length of the available buffer</span></div>
<div class="line"><a name="l00587"></a><span class="lineno"> 587</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  </div>
<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga80880312b41e86c9c266ede1a504e2ca">apr_socket_recvfrom</a>(<a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *from, </div>
<div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  apr_int32_t flags, <span class="keywordtype">char</span> *buf, </div>
<div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  apr_size_t *len);</div>
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  </div>
<div class="line"><a name="l00594"></a><span class="lineno"> 594</span> <span class="preprocessor">#if APR_HAS_SENDFILE || defined(DOXYGEN)</span></div>
<div class="line"><a name="l00595"></a><span class="lineno"> 595</span> <span class="comment"></span> </div>
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span> <span class="comment"> * Send a file from an open file descriptor to a socket, along with </span></div>
<div class="line"><a name="l00598"></a><span class="lineno"> 598</span> <span class="comment"> * optional headers and trailers</span></div>
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span> <span class="comment"> * @param sock The socket to which we're writing</span></div>
<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="comment"> * @param file The open file from which to read</span></div>
<div class="line"><a name="l00601"></a><span class="lineno"> 601</span> <span class="comment"> * @param hdtr A structure containing the headers and trailers to send</span></div>
<div class="line"><a name="l00602"></a><span class="lineno"> 602</span> <span class="comment"> * @param offset Offset into the file where we should begin writing</span></div>
<div class="line"><a name="l00603"></a><span class="lineno"> 603</span> <span class="comment"> * @param len (input) - Number of bytes to send from the file </span></div>
<div class="line"><a name="l00604"></a><span class="lineno"> 604</span> <span class="comment"> * (output) - Number of bytes actually sent, </span></div>
<div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="comment"> * including headers, file, and trailers</span></div>
<div class="line"><a name="l00606"></a><span class="lineno"> 606</span> <span class="comment"> * @param flags APR flags that are mapped to OS specific flags</span></div>
<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> <span class="comment"> * @remark This functions acts like a blocking write by default. To change </span></div>
<div class="line"><a name="l00608"></a><span class="lineno"> 608</span> <span class="comment"> * this behavior, use apr_socket_timeout_set() or the</span></div>
<div class="line"><a name="l00609"></a><span class="lineno"> 609</span> <span class="comment"> * APR_SO_NONBLOCK socket option.</span></div>
<div class="line"><a name="l00610"></a><span class="lineno"> 610</span> <span class="comment"> * The number of bytes actually sent is stored in the len parameter.</span></div>
<div class="line"><a name="l00611"></a><span class="lineno"> 611</span> <span class="comment"> * The offset parameter is passed by reference for no reason; its</span></div>
<div class="line"><a name="l00612"></a><span class="lineno"> 612</span> <span class="comment"> * value will never be modified by the apr_socket_sendfile() function.</span></div>
<div class="line"><a name="l00613"></a><span class="lineno"> 613</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00614"></a><span class="lineno"> 614</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga3d93e6212c4c27f2390b0057f8f4a8be">apr_socket_sendfile</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <a class="code" href="group__apr__file__io.html#gaa46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a> *file,</div>
<div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  <a class="code" href="structapr__hdtr__t.html">apr_hdtr_t</a> *hdtr,</div>
<div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  apr_off_t *offset,</div>
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  apr_size_t *len,</div>
<div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  apr_int32_t flags);</div>
<div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  </div>
<div class="line"><a name="l00621"></a><span class="lineno"> 621</span> <span class="preprocessor">#endif </span><span class="comment">/* APR_HAS_SENDFILE */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> <span class="comment"></span> </div>
<div class="line"><a name="l00623"></a><span class="lineno"> 623</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00624"></a><span class="lineno"> 624</span> <span class="comment"> * Read data from a network.</span></div>
<div class="line"><a name="l00625"></a><span class="lineno"> 625</span> <span class="comment"> * @param sock The socket to read the data from.</span></div>
<div class="line"><a name="l00626"></a><span class="lineno"> 626</span> <span class="comment"> * @param buf The buffer to store the data in. </span></div>
<div class="line"><a name="l00627"></a><span class="lineno"> 627</span> <span class="comment"> * @param len On entry, the number of bytes to receive; on exit, the number</span></div>
<div class="line"><a name="l00628"></a><span class="lineno"> 628</span> <span class="comment"> * of bytes received.</span></div>
<div class="line"><a name="l00629"></a><span class="lineno"> 629</span> <span class="comment"> * @remark</span></div>
<div class="line"><a name="l00630"></a><span class="lineno"> 630</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> <span class="comment"> * This functions acts like a blocking read by default. To change </span></div>
<div class="line"><a name="l00632"></a><span class="lineno"> 632</span> <span class="comment"> * this behavior, use apr_socket_timeout_set() or the APR_SO_NONBLOCK</span></div>
<div class="line"><a name="l00633"></a><span class="lineno"> 633</span> <span class="comment"> * socket option.</span></div>
<div class="line"><a name="l00634"></a><span class="lineno"> 634</span> <span class="comment"> * The number of bytes actually received is stored in argument 3.</span></div>
<div class="line"><a name="l00635"></a><span class="lineno"> 635</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00636"></a><span class="lineno"> 636</span> <span class="comment"> * It is possible for both bytes to be received and an APR_EOF or</span></div>
<div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="comment"> * other error to be returned.</span></div>
<div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00639"></a><span class="lineno"> 639</span> <span class="comment"> * APR_EINTR is never returned.</span></div>
<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gaa6ee00191f197f64b5a5409f4aff53d1">apr_socket_recv</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  <span class="keywordtype">char</span> *buf, apr_size_t *len);</div>
<div class="line"><a name="l00644"></a><span class="lineno"> 644</span> <span class="comment"></span> </div>
<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="comment"> * Setup socket options for the specified socket</span></div>
<div class="line"><a name="l00647"></a><span class="lineno"> 647</span> <span class="comment"> * @param sock The socket to set up.</span></div>
<div class="line"><a name="l00648"></a><span class="lineno"> 648</span> <span class="comment"> * @param opt The option we would like to configure. One of:</span></div>
<div class="line"><a name="l00649"></a><span class="lineno"> 649</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00650"></a><span class="lineno"> 650</span> <span class="comment"> * APR_SO_DEBUG -- turn on debugging information </span></div>
<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="comment"> * APR_SO_KEEPALIVE -- keep connections active</span></div>
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span> <span class="comment"> * APR_SO_LINGER -- lingers on close if data is present</span></div>
<div class="line"><a name="l00653"></a><span class="lineno"> 653</span> <span class="comment"> * APR_SO_NONBLOCK -- Turns blocking on/off for socket</span></div>
<div class="line"><a name="l00654"></a><span class="lineno"> 654</span> <span class="comment"> * When this option is enabled, use</span></div>
<div class="line"><a name="l00655"></a><span class="lineno"> 655</span> <span class="comment"> * the APR_STATUS_IS_EAGAIN() macro to</span></div>
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> <span class="comment"> * see if a send or receive function</span></div>
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> <span class="comment"> * could not transfer data without</span></div>
<div class="line"><a name="l00658"></a><span class="lineno"> 658</span> <span class="comment"> * blocking.</span></div>
<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> <span class="comment"> * APR_SO_REUSEADDR -- The rules used in validating addresses</span></div>
<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="comment"> * supplied to bind should allow reuse</span></div>
<div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="comment"> * of local addresses.</span></div>
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> <span class="comment"> * APR_SO_SNDBUF -- Set the SendBufferSize</span></div>
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> <span class="comment"> * APR_SO_RCVBUF -- Set the ReceiveBufferSize</span></div>
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> <span class="comment"> * APR_SO_FREEBIND -- Allow binding to non-local IP address.</span></div>
<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> <span class="comment"> * @param on Value for the option.</span></div>
<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga08f5e505fa611005f56c12783269ffa9">apr_socket_opt_set</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  apr_int32_t opt, apr_int32_t on);</div>
<div class="line"><a name="l00670"></a><span class="lineno"> 670</span> <span class="comment"></span> </div>
<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00672"></a><span class="lineno"> 672</span> <span class="comment"> * Setup socket timeout for the specified socket</span></div>
<div class="line"><a name="l00673"></a><span class="lineno"> 673</span> <span class="comment"> * @param sock The socket to set up.</span></div>
<div class="line"><a name="l00674"></a><span class="lineno"> 674</span> <span class="comment"> * @param t Value for the timeout.</span></div>
<div class="line"><a name="l00675"></a><span class="lineno"> 675</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00676"></a><span class="lineno"> 676</span> <span class="comment"> * t > 0 -- read and write calls return APR_TIMEUP if specified time</span></div>
<div class="line"><a name="l00677"></a><span class="lineno"> 677</span> <span class="comment"> * elapsess with no data read or written</span></div>
<div class="line"><a name="l00678"></a><span class="lineno"> 678</span> <span class="comment"> * t == 0 -- read and write calls never block</span></div>
<div class="line"><a name="l00679"></a><span class="lineno"> 679</span> <span class="comment"> * t < 0 -- read and write calls block</span></div>
<div class="line"><a name="l00680"></a><span class="lineno"> 680</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00682"></a><span class="lineno"> 682</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga945bdbe807ec5635d65a6fd9ddb78c29">apr_socket_timeout_set</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  <a class="code" href="group__apr__time.html#gaae2129185a395cc393f76fabf4f43e47">apr_interval_time_t</a> t);</div>
<div class="line"><a name="l00684"></a><span class="lineno"> 684</span> <span class="comment"></span> </div>
<div class="line"><a name="l00685"></a><span class="lineno"> 685</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> <span class="comment"> * Query socket options for the specified socket</span></div>
<div class="line"><a name="l00687"></a><span class="lineno"> 687</span> <span class="comment"> * @param sock The socket to query</span></div>
<div class="line"><a name="l00688"></a><span class="lineno"> 688</span> <span class="comment"> * @param opt The option we would like to query. One of:</span></div>
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> <span class="comment"> * <PRE></span></div>
<div class="line"><a name="l00690"></a><span class="lineno"> 690</span> <span class="comment"> * APR_SO_DEBUG -- turn on debugging information </span></div>
<div class="line"><a name="l00691"></a><span class="lineno"> 691</span> <span class="comment"> * APR_SO_KEEPALIVE -- keep connections active</span></div>
<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> <span class="comment"> * APR_SO_LINGER -- lingers on close if data is present</span></div>
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> <span class="comment"> * APR_SO_NONBLOCK -- Turns blocking on/off for socket</span></div>
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="comment"> * APR_SO_REUSEADDR -- The rules used in validating addresses</span></div>
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span> <span class="comment"> * supplied to bind should allow reuse</span></div>
<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> <span class="comment"> * of local addresses.</span></div>
<div class="line"><a name="l00697"></a><span class="lineno"> 697</span> <span class="comment"> * APR_SO_SNDBUF -- Set the SendBufferSize</span></div>
<div class="line"><a name="l00698"></a><span class="lineno"> 698</span> <span class="comment"> * APR_SO_RCVBUF -- Set the ReceiveBufferSize</span></div>
<div class="line"><a name="l00699"></a><span class="lineno"> 699</span> <span class="comment"> * APR_SO_DISCONNECTED -- Query the disconnected state of the socket.</span></div>
<div class="line"><a name="l00700"></a><span class="lineno"> 700</span> <span class="comment"> * (Currently only used on Windows)</span></div>
<div class="line"><a name="l00701"></a><span class="lineno"> 701</span> <span class="comment"> * </PRE></span></div>
<div class="line"><a name="l00702"></a><span class="lineno"> 702</span> <span class="comment"> * @param on Socket option returned on the call.</span></div>
<div class="line"><a name="l00703"></a><span class="lineno"> 703</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00704"></a><span class="lineno"> 704</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga1934c2d5943efc8ce925f376f3c2e17e">apr_socket_opt_get</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  apr_int32_t opt, apr_int32_t *on);</div>
<div class="line"><a name="l00706"></a><span class="lineno"> 706</span> <span class="comment"></span> </div>
<div class="line"><a name="l00707"></a><span class="lineno"> 707</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00708"></a><span class="lineno"> 708</span> <span class="comment"> * Query socket timeout for the specified socket</span></div>
<div class="line"><a name="l00709"></a><span class="lineno"> 709</span> <span class="comment"> * @param sock The socket to query</span></div>
<div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <span class="comment"> * @param t Socket timeout returned from the query.</span></div>
<div class="line"><a name="l00711"></a><span class="lineno"> 711</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00712"></a><span class="lineno"> 712</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gaa32313b54afed590367c8571075d2bc1">apr_socket_timeout_get</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <a class="code" href="group__apr__time.html#gaae2129185a395cc393f76fabf4f43e47">apr_interval_time_t</a> *t);</div>
<div class="line"><a name="l00714"></a><span class="lineno"> 714</span> <span class="comment"></span> </div>
<div class="line"><a name="l00715"></a><span class="lineno"> 715</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00716"></a><span class="lineno"> 716</span> <span class="comment"> * Query the specified socket if at the OOB/Urgent data mark</span></div>
<div class="line"><a name="l00717"></a><span class="lineno"> 717</span> <span class="comment"> * @param sock The socket to query</span></div>
<div class="line"><a name="l00718"></a><span class="lineno"> 718</span> <span class="comment"> * @param atmark Is set to true if socket is at the OOB/urgent mark,</span></div>
<div class="line"><a name="l00719"></a><span class="lineno"> 719</span> <span class="comment"> * otherwise is set to false.</span></div>
<div class="line"><a name="l00720"></a><span class="lineno"> 720</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00721"></a><span class="lineno"> 721</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga2389de257444870974b5ded91cf7a10c">apr_socket_atmark</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, </div>
<div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <span class="keywordtype">int</span> *atmark);</div>
<div class="line"><a name="l00723"></a><span class="lineno"> 723</span> <span class="comment"></span> </div>
<div class="line"><a name="l00724"></a><span class="lineno"> 724</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00725"></a><span class="lineno"> 725</span> <span class="comment"> * Return an address associated with a socket; either the address to</span></div>
<div class="line"><a name="l00726"></a><span class="lineno"> 726</span> <span class="comment"> * which the socket is bound locally or the address of the peer</span></div>
<div class="line"><a name="l00727"></a><span class="lineno"> 727</span> <span class="comment"> * to which the socket is connected.</span></div>
<div class="line"><a name="l00728"></a><span class="lineno"> 728</span> <span class="comment"> * @param sa The returned apr_sockaddr_t.</span></div>
<div class="line"><a name="l00729"></a><span class="lineno"> 729</span> <span class="comment"> * @param which Whether to retrieve the local or remote address</span></div>
<div class="line"><a name="l00730"></a><span class="lineno"> 730</span> <span class="comment"> * @param sock The socket to use</span></div>
<div class="line"><a name="l00731"></a><span class="lineno"> 731</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00732"></a><span class="lineno"> 732</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gacad56b59eafc6ad2459bf6493c992515">apr_socket_addr_get</a>(<a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> **sa,</div>
<div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  <a class="code" href="group__apr__network__io.html#ga1982f44f48fdf00a8bd754bc7b773edc">apr_interface_e</a> which,</div>
<div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock);</div>
<div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  <span class="comment"></span></div>
<div class="line"><a name="l00736"></a><span class="lineno"> 736</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00737"></a><span class="lineno"> 737</span> <span class="comment"> * Return the IP address (in numeric address string format) in</span></div>
<div class="line"><a name="l00738"></a><span class="lineno"> 738</span> <span class="comment"> * an APR socket address. APR will allocate storage for the IP address </span></div>
<div class="line"><a name="l00739"></a><span class="lineno"> 739</span> <span class="comment"> * string from the pool of the apr_sockaddr_t.</span></div>
<div class="line"><a name="l00740"></a><span class="lineno"> 740</span> <span class="comment"> * @param addr The IP address.</span></div>
<div class="line"><a name="l00741"></a><span class="lineno"> 741</span> <span class="comment"> * @param sockaddr The socket address to reference.</span></div>
<div class="line"><a name="l00742"></a><span class="lineno"> 742</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00743"></a><span class="lineno"> 743</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gab78fc9b9799c119f4a5517411458a660">apr_sockaddr_ip_get</a>(<span class="keywordtype">char</span> **addr, </div>
<div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sockaddr);</div>
<div class="line"><a name="l00745"></a><span class="lineno"> 745</span> <span class="comment"></span> </div>
<div class="line"><a name="l00746"></a><span class="lineno"> 746</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00747"></a><span class="lineno"> 747</span> <span class="comment"> * Write the IP address (in numeric address string format) of the APR</span></div>
<div class="line"><a name="l00748"></a><span class="lineno"> 748</span> <span class="comment"> * socket address @a sockaddr into the buffer @a buf (of size @a buflen).</span></div>
<div class="line"><a name="l00749"></a><span class="lineno"> 749</span> <span class="comment"> * @param sockaddr The socket address to reference.</span></div>
<div class="line"><a name="l00750"></a><span class="lineno"> 750</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00751"></a><span class="lineno"> 751</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga8c88ae154304e30d47c2696f4370dc6d">apr_sockaddr_ip_getbuf</a>(<span class="keywordtype">char</span> *buf, apr_size_t buflen,</div>
<div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sockaddr);</div>
<div class="line"><a name="l00753"></a><span class="lineno"> 753</span> <span class="comment"></span> </div>
<div class="line"><a name="l00754"></a><span class="lineno"> 754</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00755"></a><span class="lineno"> 755</span> <span class="comment"> * See if the IP addresses in two APR socket addresses are</span></div>
<div class="line"><a name="l00756"></a><span class="lineno"> 756</span> <span class="comment"> * equivalent. Appropriate logic is present for comparing</span></div>
<div class="line"><a name="l00757"></a><span class="lineno"> 757</span> <span class="comment"> * IPv4-mapped IPv6 addresses with IPv4 addresses.</span></div>
<div class="line"><a name="l00758"></a><span class="lineno"> 758</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00759"></a><span class="lineno"> 759</span> <span class="comment"> * @param addr1 One of the APR socket addresses.</span></div>
<div class="line"><a name="l00760"></a><span class="lineno"> 760</span> <span class="comment"> * @param addr2 The other APR socket address.</span></div>
<div class="line"><a name="l00761"></a><span class="lineno"> 761</span> <span class="comment"> * @remark The return value will be non-zero if the addresses</span></div>
<div class="line"><a name="l00762"></a><span class="lineno"> 762</span> <span class="comment"> * are equivalent.</span></div>
<div class="line"><a name="l00763"></a><span class="lineno"> 763</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00764"></a><span class="lineno"> 764</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<span class="keywordtype">int</span>) <a class="code" href="group__apr__network__io.html#ga1bf65369305ae352f3280af2acc684f5">apr_sockaddr_equal</a>(<span class="keyword">const</span> <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *addr1,</div>
<div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="keyword">const</span> <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *addr2);</div>
<div class="line"><a name="l00766"></a><span class="lineno"> 766</span> <span class="comment"></span> </div>
<div class="line"><a name="l00767"></a><span class="lineno"> 767</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00768"></a><span class="lineno"> 768</span> <span class="comment"> * See if the IP address in an APR socket address refers to the wildcard</span></div>
<div class="line"><a name="l00769"></a><span class="lineno"> 769</span> <span class="comment"> * address for the protocol family (e.g., INADDR_ANY for IPv4).</span></div>
<div class="line"><a name="l00770"></a><span class="lineno"> 770</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00771"></a><span class="lineno"> 771</span> <span class="comment"> * @param addr The APR socket address to examine.</span></div>
<div class="line"><a name="l00772"></a><span class="lineno"> 772</span> <span class="comment"> * @remark The return value will be non-zero if the address is</span></div>
<div class="line"><a name="l00773"></a><span class="lineno"> 773</span> <span class="comment"> * initialized and is the wildcard address.</span></div>
<div class="line"><a name="l00774"></a><span class="lineno"> 774</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00775"></a><span class="lineno"> 775</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<span class="keywordtype">int</span>) <a class="code" href="group__apr__network__io.html#gab9e53832f95e39cb780345c2b7783830">apr_sockaddr_is_wildcard</a>(<span class="keyword">const</span> <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *addr);</div>
<div class="line"><a name="l00776"></a><span class="lineno"> 776</span> <span class="comment"></span> </div>
<div class="line"><a name="l00777"></a><span class="lineno"> 777</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00778"></a><span class="lineno"> 778</span> <span class="comment">* Return the type of the socket.</span></div>
<div class="line"><a name="l00779"></a><span class="lineno"> 779</span> <span class="comment">* @param sock The socket to query.</span></div>
<div class="line"><a name="l00780"></a><span class="lineno"> 780</span> <span class="comment">* @param type The returned type (e.g., SOCK_STREAM).</span></div>
<div class="line"><a name="l00781"></a><span class="lineno"> 781</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00782"></a><span class="lineno"> 782</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga8d23ee2db9a84af2e6408ef460613514">apr_socket_type_get</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  <span class="keywordtype">int</span> *type);</div>
<div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  <span class="comment"></span></div>
<div class="line"><a name="l00785"></a><span class="lineno"> 785</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00786"></a><span class="lineno"> 786</span> <span class="comment"> * Given an apr_sockaddr_t and a service name, set the port for the service</span></div>
<div class="line"><a name="l00787"></a><span class="lineno"> 787</span> <span class="comment"> * @param sockaddr The apr_sockaddr_t that will have its port set</span></div>
<div class="line"><a name="l00788"></a><span class="lineno"> 788</span> <span class="comment"> * @param servname The name of the service you wish to use</span></div>
<div class="line"><a name="l00789"></a><span class="lineno"> 789</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00790"></a><span class="lineno"> 790</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gad5b504c0fe4d578e72531e3ca0263654">apr_getservbyname</a>(<a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sockaddr, </div>
<div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *servname);<span class="comment"></span></div>
<div class="line"><a name="l00792"></a><span class="lineno"> 792</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00793"></a><span class="lineno"> 793</span> <span class="comment"> * Build an ip-subnet representation from an IP address and optional netmask or</span></div>
<div class="line"><a name="l00794"></a><span class="lineno"> 794</span> <span class="comment"> * number-of-bits.</span></div>
<div class="line"><a name="l00795"></a><span class="lineno"> 795</span> <span class="comment"> * @param ipsub The new ip-subnet representation</span></div>
<div class="line"><a name="l00796"></a><span class="lineno"> 796</span> <span class="comment"> * @param ipstr The input IP address string</span></div>
<div class="line"><a name="l00797"></a><span class="lineno"> 797</span> <span class="comment"> * @param mask_or_numbits The input netmask or number-of-bits string, or NULL</span></div>
<div class="line"><a name="l00798"></a><span class="lineno"> 798</span> <span class="comment"> * @param p The pool to allocate from</span></div>
<div class="line"><a name="l00799"></a><span class="lineno"> 799</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00800"></a><span class="lineno"> 800</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#ga34a3c7f1666427f4e381e857b9e9c298">apr_ipsubnet_create</a>(<a class="code" href="group__apr__network__io.html#gac86ee04eb80f938902095d1d0a67c324">apr_ipsubnet_t</a> **ipsub, </div>
<div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *ipstr, </div>
<div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *mask_or_numbits, </div>
<div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  <a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p);</div>
<div class="line"><a name="l00804"></a><span class="lineno"> 804</span> <span class="comment"></span> </div>
<div class="line"><a name="l00805"></a><span class="lineno"> 805</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00806"></a><span class="lineno"> 806</span> <span class="comment"> * Test the IP address in an apr_sockaddr_t against a pre-built ip-subnet</span></div>
<div class="line"><a name="l00807"></a><span class="lineno"> 807</span> <span class="comment"> * representation.</span></div>
<div class="line"><a name="l00808"></a><span class="lineno"> 808</span> <span class="comment"> * @param ipsub The ip-subnet representation</span></div>
<div class="line"><a name="l00809"></a><span class="lineno"> 809</span> <span class="comment"> * @param sa The socket address to test</span></div>
<div class="line"><a name="l00810"></a><span class="lineno"> 810</span> <span class="comment"> * @return non-zero if the socket address is within the subnet, 0 otherwise</span></div>
<div class="line"><a name="l00811"></a><span class="lineno"> 811</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00812"></a><span class="lineno"> 812</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<span class="keywordtype">int</span>) <a class="code" href="group__apr__network__io.html#gab74d21b8898b7c40bf7fd07ad3eb993d">apr_ipsubnet_test</a>(<a class="code" href="group__apr__network__io.html#gac86ee04eb80f938902095d1d0a67c324">apr_ipsubnet_t</a> *ipsub, <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *sa);</div>
<div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  </div>
<div class="line"><a name="l00814"></a><span class="lineno"> 814</span> <span class="preprocessor">#if APR_HAS_SO_ACCEPTFILTER || defined(DOXYGEN)</span></div>
<div class="line"><a name="l00815"></a><span class="lineno"> 815</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00816"></a><span class="lineno"> 816</span> <span class="comment"> * Set an OS level accept filter.</span></div>
<div class="line"><a name="l00817"></a><span class="lineno"> 817</span> <span class="comment"> * @param sock The socket to put the accept filter on.</span></div>
<div class="line"><a name="l00818"></a><span class="lineno"> 818</span> <span class="comment"> * @param name The accept filter</span></div>
<div class="line"><a name="l00819"></a><span class="lineno"> 819</span> <span class="comment"> * @param args Any extra args to the accept filter. Passing NULL here removes</span></div>
<div class="line"><a name="l00820"></a><span class="lineno"> 820</span> <span class="comment"> * the accept filter. </span></div>
<div class="line"><a name="l00821"></a><span class="lineno"> 821</span> <span class="comment"> * @bug name and args should have been declared as const char *, as they are in</span></div>
<div class="line"><a name="l00822"></a><span class="lineno"> 822</span> <span class="comment"> * APR 2.0</span></div>
<div class="line"><a name="l00823"></a><span class="lineno"> 823</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00824"></a><span class="lineno"> 824</span> <a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> <a class="code" href="group__apr__network__io.html#ga270b7c0835283fa2b85a05d295dd7ee5">apr_socket_accept_filter</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock, <span class="keywordtype">char</span> *name,</div>
<div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  <span class="keywordtype">char</span> *args);</div>
<div class="line"><a name="l00826"></a><span class="lineno"> 826</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00827"></a><span class="lineno"> 827</span> <span class="comment"></span> </div>
<div class="line"><a name="l00828"></a><span class="lineno"> 828</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00829"></a><span class="lineno"> 829</span> <span class="comment"> * Return the protocol of the socket.</span></div>
<div class="line"><a name="l00830"></a><span class="lineno"> 830</span> <span class="comment"> * @param sock The socket to query.</span></div>
<div class="line"><a name="l00831"></a><span class="lineno"> 831</span> <span class="comment"> * @param protocol The returned protocol (e.g., APR_PROTO_TCP).</span></div>
<div class="line"><a name="l00832"></a><span class="lineno"> 832</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00833"></a><span class="lineno"> 833</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__network__io.html#gac402d9426de37b6cede18fa157020bd9">apr_socket_protocol_get</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <span class="keywordtype">int</span> *protocol);</div>
<div class="line"><a name="l00835"></a><span class="lineno"> 835</span> <span class="comment"></span> </div>
<div class="line"><a name="l00836"></a><span class="lineno"> 836</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00837"></a><span class="lineno"> 837</span> <span class="comment"> * Get the pool used by the socket.</span></div>
<div class="line"><a name="l00838"></a><span class="lineno"> 838</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00839"></a><span class="lineno"> 839</span> <a class="code" href="group__apr__pools.html#ga89ce1d55c7f0c39ea87c88eabd655394">APR_POOL_DECLARE_ACCESSOR</a>(socket);</div>
<div class="line"><a name="l00840"></a><span class="lineno"> 840</span> <span class="comment"></span> </div>
<div class="line"><a name="l00841"></a><span class="lineno"> 841</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00842"></a><span class="lineno"> 842</span> <span class="comment"> * Set a socket to be inherited by child processes.</span></div>
<div class="line"><a name="l00843"></a><span class="lineno"> 843</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00844"></a><span class="lineno"> 844</span> <a class="code" href="apr__inherit_8h.html#aa67d345784df8cce8114086e1f67cf3d">APR_DECLARE_INHERIT_SET</a>(socket);</div>
<div class="line"><a name="l00845"></a><span class="lineno"> 845</span> <span class="comment"></span> </div>
<div class="line"><a name="l00846"></a><span class="lineno"> 846</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00847"></a><span class="lineno"> 847</span> <span class="comment"> * Unset a socket from being inherited by child processes.</span></div>
<div class="line"><a name="l00848"></a><span class="lineno"> 848</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00849"></a><span class="lineno"> 849</span> <a class="code" href="apr__inherit_8h.html#ad4886be514d6cead6bd119a48984d4b5">APR_DECLARE_INHERIT_UNSET</a>(socket);</div>
<div class="line"><a name="l00850"></a><span class="lineno"> 850</span> <span class="comment"></span> </div>
<div class="line"><a name="l00851"></a><span class="lineno"> 851</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00852"></a><span class="lineno"> 852</span> <span class="comment"> * Set socket permissions.</span></div>
<div class="line"><a name="l00853"></a><span class="lineno"> 853</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00854"></a><span class="lineno"> 854</span> <a class="code" href="group__apr__network__io.html#ga9fc01ffaed8412193d2744f1fb632d88">APR_PERMS_SET_IMPLEMENT</a>(socket);</div>
<div class="line"><a name="l00855"></a><span class="lineno"> 855</span> <span class="comment"></span> </div>
<div class="line"><a name="l00856"></a><span class="lineno"> 856</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00857"></a><span class="lineno"> 857</span> <span class="comment"> * @defgroup apr_mcast IP Multicast</span></div>
<div class="line"><a name="l00858"></a><span class="lineno"> 858</span> <span class="comment"> * @{</span></div>
<div class="line"><a name="l00859"></a><span class="lineno"> 859</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00860"></a><span class="lineno"> 860</span> <span class="comment"></span> </div>
<div class="line"><a name="l00861"></a><span class="lineno"> 861</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00862"></a><span class="lineno"> 862</span> <span class="comment"> * Join a Multicast Group</span></div>
<div class="line"><a name="l00863"></a><span class="lineno"> 863</span> <span class="comment"> * @param sock The socket to join a multicast group</span></div>
<div class="line"><a name="l00864"></a><span class="lineno"> 864</span> <span class="comment"> * @param join The address of the multicast group to join</span></div>
<div class="line"><a name="l00865"></a><span class="lineno"> 865</span> <span class="comment"> * @param iface Address of the interface to use. If NULL is passed, the </span></div>
<div class="line"><a name="l00866"></a><span class="lineno"> 866</span> <span class="comment"> * default multicast interface will be used. (OS Dependent)</span></div>
<div class="line"><a name="l00867"></a><span class="lineno"> 867</span> <span class="comment"> * @param source Source Address to accept transmissions from (non-NULL </span></div>
<div class="line"><a name="l00868"></a><span class="lineno"> 868</span> <span class="comment"> * implies Source-Specific Multicast)</span></div>
<div class="line"><a name="l00869"></a><span class="lineno"> 869</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00870"></a><span class="lineno"> 870</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__mcast.html#ga731894962f9b20b2ee3ccd057053ef71">apr_mcast_join</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *join,</div>
<div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *iface,</div>
<div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *source);</div>
<div class="line"><a name="l00874"></a><span class="lineno"> 874</span> <span class="comment"></span> </div>
<div class="line"><a name="l00875"></a><span class="lineno"> 875</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00876"></a><span class="lineno"> 876</span> <span class="comment"> * Leave a Multicast Group. All arguments must be the same as</span></div>
<div class="line"><a name="l00877"></a><span class="lineno"> 877</span> <span class="comment"> * apr_mcast_join.</span></div>
<div class="line"><a name="l00878"></a><span class="lineno"> 878</span> <span class="comment"> * @param sock The socket to leave a multicast group</span></div>
<div class="line"><a name="l00879"></a><span class="lineno"> 879</span> <span class="comment"> * @param addr The address of the multicast group to leave</span></div>
<div class="line"><a name="l00880"></a><span class="lineno"> 880</span> <span class="comment"> * @param iface Address of the interface to use. If NULL is passed, the </span></div>
<div class="line"><a name="l00881"></a><span class="lineno"> 881</span> <span class="comment"> * default multicast interface will be used. (OS Dependent)</span></div>
<div class="line"><a name="l00882"></a><span class="lineno"> 882</span> <span class="comment"> * @param source Source Address to accept transmissions from (non-NULL </span></div>
<div class="line"><a name="l00883"></a><span class="lineno"> 883</span> <span class="comment"> * implies Source-Specific Multicast)</span></div>
<div class="line"><a name="l00884"></a><span class="lineno"> 884</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00885"></a><span class="lineno"> 885</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__mcast.html#gadd3d59b5f628786093277b962c863d13">apr_mcast_leave</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *addr,</div>
<div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *iface,</div>
<div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *source);</div>
<div class="line"><a name="l00889"></a><span class="lineno"> 889</span> <span class="comment"></span> </div>
<div class="line"><a name="l00890"></a><span class="lineno"> 890</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00891"></a><span class="lineno"> 891</span> <span class="comment"> * Set the Multicast Time to Live (ttl) for a multicast transmission.</span></div>
<div class="line"><a name="l00892"></a><span class="lineno"> 892</span> <span class="comment"> * @param sock The socket to set the multicast ttl</span></div>
<div class="line"><a name="l00893"></a><span class="lineno"> 893</span> <span class="comment"> * @param ttl Time to live to Assign. 0-255, default=1</span></div>
<div class="line"><a name="l00894"></a><span class="lineno"> 894</span> <span class="comment"> * @remark If the TTL is 0, packets will only be seen by sockets on </span></div>
<div class="line"><a name="l00895"></a><span class="lineno"> 895</span> <span class="comment"> * the local machine, and only when multicast loopback is enabled.</span></div>
<div class="line"><a name="l00896"></a><span class="lineno"> 896</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00897"></a><span class="lineno"> 897</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__mcast.html#ga373041d43cb0fd05b2974b9fef0ae30f">apr_mcast_hops</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  apr_byte_t ttl);</div>
<div class="line"><a name="l00899"></a><span class="lineno"> 899</span> <span class="comment"></span> </div>
<div class="line"><a name="l00900"></a><span class="lineno"> 900</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00901"></a><span class="lineno"> 901</span> <span class="comment"> * Toggle IP Multicast Loopback</span></div>
<div class="line"><a name="l00902"></a><span class="lineno"> 902</span> <span class="comment"> * @param sock The socket to set multicast loopback</span></div>
<div class="line"><a name="l00903"></a><span class="lineno"> 903</span> <span class="comment"> * @param opt 0=disable, 1=enable</span></div>
<div class="line"><a name="l00904"></a><span class="lineno"> 904</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00905"></a><span class="lineno"> 905</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__mcast.html#ga84bc14970499f79de8b71d77898f68ee">apr_mcast_loopback</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  apr_byte_t opt);</div>
<div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  </div>
<div class="line"><a name="l00908"></a><span class="lineno"> 908</span> <span class="comment"></span> </div>
<div class="line"><a name="l00909"></a><span class="lineno"> 909</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00910"></a><span class="lineno"> 910</span> <span class="comment"> * Set the Interface to be used for outgoing Multicast Transmissions.</span></div>
<div class="line"><a name="l00911"></a><span class="lineno"> 911</span> <span class="comment"> * @param sock The socket to set the multicast interface on</span></div>
<div class="line"><a name="l00912"></a><span class="lineno"> 912</span> <span class="comment"> * @param iface Address of the interface to use for Multicast</span></div>
<div class="line"><a name="l00913"></a><span class="lineno"> 913</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00914"></a><span class="lineno"> 914</span> <a class="code" href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a>(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group__apr__mcast.html#ga9949eb40d8bfb670f9bce997cebcdcae">apr_mcast_interface</a>(<a class="code" href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a> *sock,</div>
<div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <a class="code" href="structapr__sockaddr__t.html">apr_sockaddr_t</a> *iface);</div>
<div class="line"><a name="l00916"></a><span class="lineno"> 916</span> <span class="comment"></span> </div>
<div class="line"><a name="l00917"></a><span class="lineno"> 917</span> <span class="comment">/** @} */</span></div>
<div class="line"><a name="l00918"></a><span class="lineno"> 918</span> <span class="comment"></span> </div>
<div class="line"><a name="l00919"></a><span class="lineno"> 919</span> <span class="comment">/** @} */</span></div>
<div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  </div>
<div class="line"><a name="l00921"></a><span class="lineno"> 921</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00922"></a><span class="lineno"> 922</span> }</div>
<div class="line"><a name="l00923"></a><span class="lineno"> 923</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  </div>
<div class="line"><a name="l00925"></a><span class="lineno"> 925</span> <span class="preprocessor">#endif </span><span class="comment">/* ! APR_NETWORK_IO_H */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructapr__hdtr__t_html_a538387cfa0065abc2bfa6ba7393fa3ee"><div class="ttname"><a href="structapr__hdtr__t.html#a538387cfa0065abc2bfa6ba7393fa3ee">apr_hdtr_t::trailers</a></div><div class="ttdeci">struct iovec * trailers</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:299</div></div>
<div class="ttc" id="agroup__apr__mcast_html_ga373041d43cb0fd05b2974b9fef0ae30f"><div class="ttname"><a href="group__apr__mcast.html#ga373041d43cb0fd05b2974b9fef0ae30f">apr_mcast_hops</a></div><div class="ttdeci">apr_status_t apr_mcast_hops(apr_socket_t *sock, apr_byte_t ttl)</div></div>
<div class="ttc" id="astructapr__hdtr__t_html_a9468659de891a5672b0b84cf442e9c7b"><div class="ttname"><a href="structapr__hdtr__t.html#a9468659de891a5672b0b84cf442e9c7b">apr_hdtr_t::numtrailers</a></div><div class="ttdeci">int numtrailers</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:301</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga80880312b41e86c9c266ede1a504e2ca"><div class="ttname"><a href="group__apr__network__io.html#ga80880312b41e86c9c266ede1a504e2ca">apr_socket_recvfrom</a></div><div class="ttdeci">apr_status_t apr_socket_recvfrom(apr_sockaddr_t *from, apr_socket_t *sock, apr_int32_t flags, char *buf, apr_size_t *len)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga1934c2d5943efc8ce925f376f3c2e17e"><div class="ttname"><a href="group__apr__network__io.html#ga1934c2d5943efc8ce925f376f3c2e17e">apr_socket_opt_get</a></div><div class="ttdeci">apr_status_t apr_socket_opt_get(apr_socket_t *sock, apr_int32_t opt, apr_int32_t *on)</div></div>
<div class="ttc" id="aapr__errno_8h_html"><div class="ttname"><a href="apr__errno_8h.html">apr_errno.h</a></div><div class="ttdoc">APR Error Codes.</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gaa6ee00191f197f64b5a5409f4aff53d1"><div class="ttname"><a href="group__apr__network__io.html#gaa6ee00191f197f64b5a5409f4aff53d1">apr_socket_recv</a></div><div class="ttdeci">apr_status_t apr_socket_recv(apr_socket_t *sock, char *buf, apr_size_t *len)</div></div>
<div class="ttc" id="agroup__apr__mcast_html_ga731894962f9b20b2ee3ccd057053ef71"><div class="ttname"><a href="group__apr__mcast.html#ga731894962f9b20b2ee3ccd057053ef71">apr_mcast_join</a></div><div class="ttdeci">apr_status_t apr_mcast_join(apr_socket_t *sock, apr_sockaddr_t *join, apr_sockaddr_t *iface, apr_sockaddr_t *source)</div></div>
<div class="ttc" id="aapr__inherit_8h_html_ad4886be514d6cead6bd119a48984d4b5"><div class="ttname"><a href="apr__inherit_8h.html#ad4886be514d6cead6bd119a48984d4b5">APR_DECLARE_INHERIT_UNSET</a></div><div class="ttdeci">#define APR_DECLARE_INHERIT_UNSET(type)</div><div class="ttdef"><b>Definition:</b> apr_inherit.h:47</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gac5aea857a50c493f840c48b930abc48e"><div class="ttname"><a href="group__apr__network__io.html#gac5aea857a50c493f840c48b930abc48e">apr_socket_shutdown</a></div><div class="ttdeci">apr_status_t apr_socket_shutdown(apr_socket_t *thesocket, apr_shutdown_how_e how)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gae76b48d0224a608b4ddb8bd00582eaa7"><div class="ttname"><a href="group__apr__network__io.html#gae76b48d0224a608b4ddb8bd00582eaa7">apr_socket_data_get</a></div><div class="ttdeci">apr_status_t apr_socket_data_get(void **data, const char *key, apr_socket_t *sock)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gafec197f3aa9a495801cdf7892ff8dcb5"><div class="ttname"><a href="group__apr__network__io.html#gafec197f3aa9a495801cdf7892ff8dcb5">apr_socket_data_set</a></div><div class="ttdeci">apr_status_t apr_socket_data_set(apr_socket_t *sock, void *data, const char *key, apr_status_t(*cleanup)(void *))</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a6aa3866aed7f527bf4f988b6dc9b5675"><div class="ttname"><a href="structapr__sockaddr__t.html#a6aa3866aed7f527bf4f988b6dc9b5675">apr_sockaddr_t::sa</a></div><div class="ttdeci">union apr_sockaddr_t::@0 sa</div></div>
<div class="ttc" id="aapr__perms__set_8h_html"><div class="ttname"><a href="apr__perms__set_8h.html">apr_perms_set.h</a></div><div class="ttdoc">APR Process Locking Routines.</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gad5b504c0fe4d578e72531e3ca0263654"><div class="ttname"><a href="group__apr__network__io.html#gad5b504c0fe4d578e72531e3ca0263654">apr_getservbyname</a></div><div class="ttdeci">apr_status_t apr_getservbyname(apr_sockaddr_t *sockaddr, const char *servname)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga08f5e505fa611005f56c12783269ffa9"><div class="ttname"><a href="group__apr__network__io.html#ga08f5e505fa611005f56c12783269ffa9">apr_socket_opt_set</a></div><div class="ttdeci">apr_status_t apr_socket_opt_set(apr_socket_t *sock, apr_int32_t opt, apr_int32_t on)</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a668335161a8347b9a34c600bff80b52f"><div class="ttname"><a href="structapr__sockaddr__t.html#a668335161a8347b9a34c600bff80b52f">apr_sockaddr_t::servname</a></div><div class="ttdeci">char * servname</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:245</div></div>
<div class="ttc" id="agroup__apr__mcast_html_ga9949eb40d8bfb670f9bce997cebcdcae"><div class="ttname"><a href="group__apr__mcast.html#ga9949eb40d8bfb670f9bce997cebcdcae">apr_mcast_interface</a></div><div class="ttdeci">apr_status_t apr_mcast_interface(apr_socket_t *sock, apr_sockaddr_t *iface)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga1d62711ca77ccc0f6413a298a47876da"><div class="ttname"><a href="group__apr__network__io.html#ga1d62711ca77ccc0f6413a298a47876da">apr_socket_accept</a></div><div class="ttdeci">apr_status_t apr_socket_accept(apr_socket_t **new_sock, apr_socket_t *sock, apr_pool_t *connection_pool)</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a7d5cf0290260c3c448360fc819b28714"><div class="ttname"><a href="structapr__sockaddr__t.html#a7d5cf0290260c3c448360fc819b28714">apr_sockaddr_t::sin</a></div><div class="ttdeci">struct sockaddr_in sin</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:266</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gac86ee04eb80f938902095d1d0a67c324"><div class="ttname"><a href="group__apr__network__io.html#gac86ee04eb80f938902095d1d0a67c324">apr_ipsubnet_t</a></div><div class="ttdeci">struct apr_ipsubnet_t apr_ipsubnet_t</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:227</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga46b81e267ef80e64510d4e83880a91bd"><div class="ttname"><a href="group__apr__network__io.html#ga46b81e267ef80e64510d4e83880a91bd">apr_socket_create</a></div><div class="ttdeci">apr_status_t apr_socket_create(apr_socket_t **new_sock, int family, int type, int protocol, apr_pool_t *cont)</div></div>
<div class="ttc" id="astructapr__hdtr__t_html"><div class="ttname"><a href="structapr__hdtr__t.html">apr_hdtr_t</a></div><div class="ttdef"><b>Definition:</b> apr_network_io.h:293</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ggae2130f1fa2d0db58c5c3c9c73d9b4009a5e335b392088e14df65d1bd5e0db7c46"><div class="ttname"><a href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009a5e335b392088e14df65d1bd5e0db7c46">APR_SHUTDOWN_WRITE</a></div><div class="ttdeci">@ APR_SHUTDOWN_WRITE</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:117</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga88779f243ce19a2563544aee81894e6d"><div class="ttname"><a href="group__apr__network__io.html#ga88779f243ce19a2563544aee81894e6d">apr_socket_close</a></div><div class="ttdeci">apr_status_t apr_socket_close(apr_socket_t *thesocket)</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a774835c6b8e3adf255b752e8b126c434"><div class="ttname"><a href="structapr__sockaddr__t.html#a774835c6b8e3adf255b752e8b126c434">apr_sockaddr_t::next</a></div><div class="ttdeci">apr_sockaddr_t * next</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:262</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga03ae34bc5712dac2b3fdee39e5f87be3"><div class="ttname"><a href="group__apr__network__io.html#ga03ae34bc5712dac2b3fdee39e5f87be3">apr_socket_sendto</a></div><div class="ttdeci">apr_status_t apr_socket_sendto(apr_socket_t *sock, apr_sockaddr_t *where, apr_int32_t flags, const char *buf, apr_size_t *len)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga99ece70c34a7a332daa3941de3950c64"><div class="ttname"><a href="group__apr__network__io.html#ga99ece70c34a7a332daa3941de3950c64">apr_socket_sendv</a></div><div class="ttdeci">apr_status_t apr_socket_sendv(apr_socket_t *sock, const struct iovec *vec, apr_int32_t nvec, apr_size_t *len)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga4175809cd324a0b81951bd656fabbc83"><div class="ttname"><a href="group__apr__network__io.html#ga4175809cd324a0b81951bd656fabbc83">apr_sockaddr_info_copy</a></div><div class="ttdeci">apr_status_t apr_sockaddr_info_copy(apr_sockaddr_t **dst, const apr_sockaddr_t *src, apr_pool_t *p)</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_ac17f6e803928cfc29069a6e62dcb3a52"><div class="ttname"><a href="structapr__sockaddr__t.html#ac17f6e803928cfc29069a6e62dcb3a52">apr_sockaddr_t::family</a></div><div class="ttdeci">apr_int32_t family</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:249</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga512882c9979c2b9cad7cbc2508516d65"><div class="ttname"><a href="group__apr__network__io.html#ga512882c9979c2b9cad7cbc2508516d65">apr_socket_bind</a></div><div class="ttdeci">apr_status_t apr_socket_bind(apr_socket_t *sock, apr_sockaddr_t *sa)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gae2130f1fa2d0db58c5c3c9c73d9b4009"><div class="ttname"><a href="group__apr__network__io.html#gae2130f1fa2d0db58c5c3c9c73d9b4009">apr_shutdown_how_e</a></div><div class="ttdeci">apr_shutdown_how_e</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:115</div></div>
<div class="ttc" id="astructin__addr_html_a1bf09b20f0531edf5da627f712561108"><div class="ttname"><a href="structin__addr.html#a1bf09b20f0531edf5da627f712561108">in_addr::s_addr</a></div><div class="ttdeci">apr_uint32_t s_addr</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:130</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a8f7cda5562e904a1398ed5a4a6f0a9d9"><div class="ttname"><a href="structapr__sockaddr__t.html#a8f7cda5562e904a1398ed5a4a6f0a9d9">apr_sockaddr_t::addr_str_len</a></div><div class="ttdeci">int addr_str_len</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:256</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gac402d9426de37b6cede18fa157020bd9"><div class="ttname"><a href="group__apr__network__io.html#gac402d9426de37b6cede18fa157020bd9">apr_socket_protocol_get</a></div><div class="ttdeci">apr_status_t apr_socket_protocol_get(apr_socket_t *sock, int *protocol)</div></div>
<div class="ttc" id="astructin__addr_html"><div class="ttname"><a href="structin__addr.html">in_addr</a></div><div class="ttdef"><b>Definition:</b> apr_network_io.h:129</div></div>
<div class="ttc" id="agroup__apr__mcast_html_ga84bc14970499f79de8b71d77898f68ee"><div class="ttname"><a href="group__apr__mcast.html#ga84bc14970499f79de8b71d77898f68ee">apr_mcast_loopback</a></div><div class="ttdeci">apr_status_t apr_mcast_loopback(apr_socket_t *sock, apr_byte_t opt)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga8e58bd8112ed2ce5004487918cd9275e"><div class="ttname"><a href="group__apr__network__io.html#ga8e58bd8112ed2ce5004487918cd9275e">apr_socket_connect</a></div><div class="ttdeci">apr_status_t apr_socket_connect(apr_socket_t *sock, apr_sockaddr_t *sa)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga8d23ee2db9a84af2e6408ef460613514"><div class="ttname"><a href="group__apr__network__io.html#ga8d23ee2db9a84af2e6408ef460613514">apr_socket_type_get</a></div><div class="ttdeci">apr_status_t apr_socket_type_get(apr_socket_t *sock, int *type)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga270b7c0835283fa2b85a05d295dd7ee5"><div class="ttname"><a href="group__apr__network__io.html#ga270b7c0835283fa2b85a05d295dd7ee5">apr_socket_accept_filter</a></div><div class="ttdeci">apr_status_t apr_socket_accept_filter(apr_socket_t *sock, char *name, char *args)</div></div>
<div class="ttc" id="agroup__apr__time_html_gaae2129185a395cc393f76fabf4f43e47"><div class="ttname"><a href="group__apr__time.html#gaae2129185a395cc393f76fabf4f43e47">apr_interval_time_t</a></div><div class="ttdeci">apr_int64_t apr_interval_time_t</div><div class="ttdef"><b>Definition:</b> apr_time.h:56</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gacad56b59eafc6ad2459bf6493c992515"><div class="ttname"><a href="group__apr__network__io.html#gacad56b59eafc6ad2459bf6493c992515">apr_socket_addr_get</a></div><div class="ttdeci">apr_status_t apr_socket_addr_get(apr_sockaddr_t **sa, apr_interface_e which, apr_socket_t *sock)</div></div>
<div class="ttc" id="aapr_8h_html"><div class="ttname"><a href="apr_8h.html">apr.h</a></div><div class="ttdoc">APR Platform Definitions.</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ggae2130f1fa2d0db58c5c3c9c73d9b4009a88d0661d35eea5319715d6ca69265b01"><div class="ttname"><a href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009a88d0661d35eea5319715d6ca69265b01">APR_SHUTDOWN_READ</a></div><div class="ttdeci">@ APR_SHUTDOWN_READ</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:116</div></div>
<div class="ttc" id="astructapr__hdtr__t_html_a8915ade68ef06f4d23005ec0f81e9305"><div class="ttname"><a href="structapr__hdtr__t.html#a8915ade68ef06f4d23005ec0f81e9305">apr_hdtr_t::numheaders</a></div><div class="ttdeci">int numheaders</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:297</div></div>
<div class="ttc" id="agroup__apr__platform_html_gad7b91b811a172bfa802603c2fb688f98"><div class="ttname"><a href="group__apr__platform.html#gad7b91b811a172bfa802603c2fb688f98">APR_DECLARE</a></div><div class="ttdeci">#define APR_DECLARE(type)</div><div class="ttdef"><b>Definition:</b> apr.h:480</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga154bcee918f6f01fe0373359dd74b0c4"><div class="ttname"><a href="group__apr__network__io.html#ga154bcee918f6f01fe0373359dd74b0c4">apr_socket_listen</a></div><div class="ttdeci">apr_status_t apr_socket_listen(apr_socket_t *sock, apr_int32_t backlog)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gab78fc9b9799c119f4a5517411458a660"><div class="ttname"><a href="group__apr__network__io.html#gab78fc9b9799c119f4a5517411458a660">apr_sockaddr_ip_get</a></div><div class="ttdeci">apr_status_t apr_sockaddr_ip_get(char **addr, apr_sockaddr_t *sockaddr)</div></div>
<div class="ttc" id="agroup__apr__file__io_html_gaa46e4763ac375ea3c7a43ba6f6099e22"><div class="ttname"><a href="group__apr__file__io.html#gaa46e4763ac375ea3c7a43ba6f6099e22">apr_file_t</a></div><div class="ttdeci">struct apr_file_t apr_file_t</div><div class="ttdef"><b>Definition:</b> apr_file_io.h:188</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga1982f44f48fdf00a8bd754bc7b773edc"><div class="ttname"><a href="group__apr__network__io.html#ga1982f44f48fdf00a8bd754bc7b773edc">apr_interface_e</a></div><div class="ttdeci">apr_interface_e</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:198</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga6bd3d656ba935ca428075f477b8a6f8b"><div class="ttname"><a href="group__apr__network__io.html#ga6bd3d656ba935ca428075f477b8a6f8b">apr_gethostname</a></div><div class="ttdeci">apr_status_t apr_gethostname(char *buf, int len, apr_pool_t *cont)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga1bf65369305ae352f3280af2acc684f5"><div class="ttname"><a href="group__apr__network__io.html#ga1bf65369305ae352f3280af2acc684f5">apr_sockaddr_equal</a></div><div class="ttdeci">int apr_sockaddr_equal(const apr_sockaddr_t *addr1, const apr_sockaddr_t *addr2)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gab74d21b8898b7c40bf7fd07ad3eb993d"><div class="ttname"><a href="group__apr__network__io.html#gab74d21b8898b7c40bf7fd07ad3eb993d">apr_ipsubnet_test</a></div><div class="ttdeci">int apr_ipsubnet_test(apr_ipsubnet_t *ipsub, apr_sockaddr_t *sa)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gabfcb1fe4447921e5b86d395126b5d6f0"><div class="ttname"><a href="group__apr__network__io.html#gabfcb1fe4447921e5b86d395126b5d6f0">apr_socket_atreadeof</a></div><div class="ttdeci">apr_status_t apr_socket_atreadeof(apr_socket_t *sock, int *atreadeof)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga49262b223e7434746e1f1737659aa2c3"><div class="ttname"><a href="group__apr__network__io.html#ga49262b223e7434746e1f1737659aa2c3">apr_socket_t</a></div><div class="ttdeci">struct apr_socket_t apr_socket_t</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:219</div></div>
<div class="ttc" id="aapr__file__io_8h_html"><div class="ttname"><a href="apr__file__io_8h.html">apr_file_io.h</a></div><div class="ttdoc">APR File I/O Handling.</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga9fc01ffaed8412193d2744f1fb632d88"><div class="ttname"><a href="group__apr__network__io.html#ga9fc01ffaed8412193d2744f1fb632d88">APR_PERMS_SET_IMPLEMENT</a></div><div class="ttdeci">APR_PERMS_SET_IMPLEMENT(socket)</div></div>
<div class="ttc" id="agroup__apr__mcast_html_gadd3d59b5f628786093277b962c863d13"><div class="ttname"><a href="group__apr__mcast.html#gadd3d59b5f628786093277b962c863d13">apr_mcast_leave</a></div><div class="ttdeci">apr_status_t apr_mcast_leave(apr_socket_t *sock, apr_sockaddr_t *addr, apr_sockaddr_t *iface, apr_sockaddr_t *source)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gaa670a71960f6eb4fe0d0de2a1e7aba03"><div class="ttname"><a href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a></div><div class="ttdeci">apr_uint16_t apr_port_t</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:230</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga8c88ae154304e30d47c2696f4370dc6d"><div class="ttname"><a href="group__apr__network__io.html#ga8c88ae154304e30d47c2696f4370dc6d">apr_sockaddr_ip_getbuf</a></div><div class="ttdeci">apr_status_t apr_sockaddr_ip_getbuf(char *buf, apr_size_t buflen, apr_sockaddr_t *sockaddr)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gab9e53832f95e39cb780345c2b7783830"><div class="ttname"><a href="group__apr__network__io.html#gab9e53832f95e39cb780345c2b7783830">apr_sockaddr_is_wildcard</a></div><div class="ttdeci">int apr_sockaddr_is_wildcard(const apr_sockaddr_t *addr)</div></div>
<div class="ttc" id="aapr__inherit_8h_html_aa67d345784df8cce8114086e1f67cf3d"><div class="ttname"><a href="apr__inherit_8h.html#aa67d345784df8cce8114086e1f67cf3d">APR_DECLARE_INHERIT_SET</a></div><div class="ttdeci">#define APR_DECLARE_INHERIT_SET(type)</div><div class="ttdef"><b>Definition:</b> apr_inherit.h:35</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ggae2130f1fa2d0db58c5c3c9c73d9b4009add172f55ff5ee7b930683a3903c99768"><div class="ttname"><a href="group__apr__network__io.html#ggae2130f1fa2d0db58c5c3c9c73d9b4009add172f55ff5ee7b930683a3903c99768">APR_SHUTDOWN_READWRITE</a></div><div class="ttdeci">@ APR_SHUTDOWN_READWRITE</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:118</div></div>
<div class="ttc" id="agroup__apr__errno_html_gaf76ee4543247e9fb3f3546203e590a6c"><div class="ttname"><a href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a></div><div class="ttdeci">int apr_status_t</div><div class="ttdef"><b>Definition:</b> apr_errno.h:44</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a8e675775b407f25674aaa938a40de9cd"><div class="ttname"><a href="structapr__sockaddr__t.html#a8e675775b407f25674aaa938a40de9cd">apr_sockaddr_t::hostname</a></div><div class="ttdeci">char * hostname</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:243</div></div>
<div class="ttc" id="aapr__pools_8h_html"><div class="ttname"><a href="apr__pools_8h.html">apr_pools.h</a></div><div class="ttdoc">APR memory allocation.</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_aef1d2a482f85eeab7b6bf0a7732a087a"><div class="ttname"><a href="structapr__sockaddr__t.html#aef1d2a482f85eeab7b6bf0a7732a087a">apr_sockaddr_t::salen</a></div><div class="ttdeci">apr_socklen_t salen</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:251</div></div>
<div class="ttc" id="agroup__apr__pools_html_ga89ce1d55c7f0c39ea87c88eabd655394"><div class="ttname"><a href="group__apr__pools.html#ga89ce1d55c7f0c39ea87c88eabd655394">APR_POOL_DECLARE_ACCESSOR</a></div><div class="ttdeci">#define APR_POOL_DECLARE_ACCESSOR(type)</div><div class="ttdef"><b>Definition:</b> apr_pools.h:81</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga7a56fd9573b942753738ec30b887c9de"><div class="ttname"><a href="group__apr__network__io.html#ga7a56fd9573b942753738ec30b887c9de">apr_getnameinfo</a></div><div class="ttdeci">apr_status_t apr_getnameinfo(char **hostname, apr_sockaddr_t *sa, apr_int32_t flags)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gaa32313b54afed590367c8571075d2bc1"><div class="ttname"><a href="group__apr__network__io.html#gaa32313b54afed590367c8571075d2bc1">apr_socket_timeout_get</a></div><div class="ttdeci">apr_status_t apr_socket_timeout_get(apr_socket_t *sock, apr_interval_time_t *t)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga945bdbe807ec5635d65a6fd9ddb78c29"><div class="ttname"><a href="group__apr__network__io.html#ga945bdbe807ec5635d65a6fd9ddb78c29">apr_socket_timeout_set</a></div><div class="ttdeci">apr_status_t apr_socket_timeout_set(apr_socket_t *sock, apr_interval_time_t t)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga34a3c7f1666427f4e381e857b9e9c298"><div class="ttname"><a href="group__apr__network__io.html#ga34a3c7f1666427f4e381e857b9e9c298">apr_ipsubnet_create</a></div><div class="ttdeci">apr_status_t apr_ipsubnet_create(apr_ipsubnet_t **ipsub, const char *ipstr, const char *mask_or_numbits, apr_pool_t *p)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga3d93e6212c4c27f2390b0057f8f4a8be"><div class="ttname"><a href="group__apr__network__io.html#ga3d93e6212c4c27f2390b0057f8f4a8be">apr_socket_sendfile</a></div><div class="ttdeci">apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file, apr_hdtr_t *hdtr, apr_off_t *offset, apr_size_t *len, apr_int32_t flags)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga90c31b2f012c6b1e2d842a96c4431de3"><div class="ttname"><a href="group__apr__network__io.html#ga90c31b2f012c6b1e2d842a96c4431de3">apr_parse_addr_port</a></div><div class="ttdeci">apr_status_t apr_parse_addr_port(char **addr, char **scope_id, apr_port_t *port, const char *str, apr_pool_t *p)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gga1982f44f48fdf00a8bd754bc7b773edcaeb8be70b031f06a513ac0ebcaa5bac8a"><div class="ttname"><a href="group__apr__network__io.html#gga1982f44f48fdf00a8bd754bc7b773edcaeb8be70b031f06a513ac0ebcaa5bac8a">APR_REMOTE</a></div><div class="ttdeci">@ APR_REMOTE</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:200</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a174c19138de9c208f13ed71b5892e505"><div class="ttname"><a href="structapr__sockaddr__t.html#a174c19138de9c208f13ed71b5892e505">apr_sockaddr_t::port</a></div><div class="ttdeci">apr_port_t port</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:247</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a81be21b2eb968b83ca36183213c99867"><div class="ttname"><a href="structapr__sockaddr__t.html#a81be21b2eb968b83ca36183213c99867">apr_sockaddr_t::ipaddr_len</a></div><div class="ttdeci">int ipaddr_len</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:253</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a6e1b71121ada4047acde36c6777b5442"><div class="ttname"><a href="structapr__sockaddr__t.html#a6e1b71121ada4047acde36c6777b5442">apr_sockaddr_t::ipaddr_ptr</a></div><div class="ttdeci">void * ipaddr_ptr</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:259</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga943268245cf59f6ff8cf1458c9a9ba8d"><div class="ttname"><a href="group__apr__network__io.html#ga943268245cf59f6ff8cf1458c9a9ba8d">apr_socket_send</a></div><div class="ttdeci">apr_status_t apr_socket_send(apr_socket_t *sock, const char *buf, apr_size_t *len)</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html"><div class="ttname"><a href="structapr__sockaddr__t.html">apr_sockaddr_t</a></div><div class="ttdef"><b>Definition:</b> apr_network_io.h:239</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gga1982f44f48fdf00a8bd754bc7b773edca6c23a4bf48b8f93dff08adf827382616"><div class="ttname"><a href="group__apr__network__io.html#gga1982f44f48fdf00a8bd754bc7b773edca6c23a4bf48b8f93dff08adf827382616">APR_LOCAL</a></div><div class="ttdeci">@ APR_LOCAL</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:199</div></div>
<div class="ttc" id="astructapr__sockaddr__t_html_a5f2d72a6a181cf2f54ba7c922aa0dfab"><div class="ttname"><a href="structapr__sockaddr__t.html#a5f2d72a6a181cf2f54ba7c922aa0dfab">apr_sockaddr_t::pool</a></div><div class="ttdeci">apr_pool_t * pool</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:241</div></div>
<div class="ttc" id="agroup__apr__pools_html_gaf137f28edcf9a086cd6bc36c20d7cdfb"><div class="ttname"><a href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a></div><div class="ttdeci">struct apr_pool_t apr_pool_t</div><div class="ttdef"><b>Definition:</b> apr_pools.h:60</div></div>
<div class="ttc" id="aapr__inherit_8h_html"><div class="ttname"><a href="apr__inherit_8h.html">apr_inherit.h</a></div><div class="ttdoc">APR File Handle Inheritance Helpers.</div></div>
<div class="ttc" id="astructapr__hdtr__t_html_afc2035a3ef314f9aa6ae3aabe7c0dc72"><div class="ttname"><a href="structapr__hdtr__t.html#afc2035a3ef314f9aa6ae3aabe7c0dc72">apr_hdtr_t::headers</a></div><div class="ttdeci">struct iovec * headers</div><div class="ttdef"><b>Definition:</b> apr_network_io.h:295</div></div>
<div class="ttc" id="agroup__apr__network__io_html_gaa2f399ca2b60b35c0abf7630298c6c9f"><div class="ttname"><a href="group__apr__network__io.html#gaa2f399ca2b60b35c0abf7630298c6c9f">apr_sockaddr_info_get</a></div><div class="ttdeci">apr_status_t apr_sockaddr_info_get(apr_sockaddr_t **sa, const char *hostname, apr_int32_t family, apr_port_t port, apr_int32_t flags, apr_pool_t *p)</div></div>
<div class="ttc" id="agroup__apr__network__io_html_ga2389de257444870974b5ded91cf7a10c"><div class="ttname"><a href="group__apr__network__io.html#ga2389de257444870974b5ded91cf7a10c">apr_socket_atmark</a></div><div class="ttdeci">apr_status_t apr_socket_atmark(apr_socket_t *sock, int *atmark)</div></div>
<!-- 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>
AnonSec - 2021 | Recode By D7net