<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Ocsigen_lib.String.html"> <link rel="next" href="Ocsigen_lib.Filename.html"> <link rel="Up" href="Ocsigen_lib.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of class methods" rel=Appendix href="index_methods.html"> <link title="Index of classes" rel=Appendix href="index_classes.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Ocsigen_cache" rel="Chapter" href="Ocsigen_cache.html"> <link title="Ocsigen_lib_base" rel="Chapter" href="Ocsigen_lib_base.html"> <link title="Ocsigen_lib" rel="Chapter" href="Ocsigen_lib.html"> <link title="Ocsigen_config" rel="Chapter" href="Ocsigen_config.html"> <link title="Ocsigen_getcommandline" rel="Chapter" href="Ocsigen_getcommandline.html"> <link title="Ocsigen_messages" rel="Chapter" href="Ocsigen_messages.html"> <link title="Ocsigen_stream" rel="Chapter" href="Ocsigen_stream.html"> <link title="Ocsigen_loader" rel="Chapter" href="Ocsigen_loader.html"> <link title="Polytables" rel="Chapter" href="Polytables.html"> <link title="Http_headers" rel="Chapter" href="Http_headers.html"> <link title="Ocsigen_http_frame" rel="Chapter" href="Ocsigen_http_frame.html"> <link title="Ocsigen_headers" rel="Chapter" href="Ocsigen_headers.html"> <link title="Framepp" rel="Chapter" href="Framepp.html"> <link title="Ocsigen_http_com" rel="Chapter" href="Ocsigen_http_com.html"> <link title="Ocsigen_charset_mime" rel="Chapter" href="Ocsigen_charset_mime.html"> <link title="Ocsigen_senders" rel="Chapter" href="Ocsigen_senders.html"> <link title="Ocsigen_cookies" rel="Chapter" href="Ocsigen_cookies.html"> <link title="Ocsigen_extensions" rel="Chapter" href="Ocsigen_extensions.html"> <link title="Ocsigen_parseconfig" rel="Chapter" href="Ocsigen_parseconfig.html"> <link title="Ocsigen_http_client" rel="Chapter" href="Ocsigen_http_client.html"> <link title="Ocsigen_local_files" rel="Chapter" href="Ocsigen_local_files.html"> <link title="Ocsigen_server" rel="Chapter" href="Ocsigen_server.html"> <link title="Ocsigen_comet" rel="Chapter" href="Ocsigen_comet.html"> <link title="Accesscontrol" rel="Chapter" href="Accesscontrol.html"> <link title="Authbasic" rel="Chapter" href="Authbasic.html"> <link title="Ocsipersist" rel="Chapter" href="Ocsipersist.html"><title>Ocsigen_lib.Ip_address</title> </head> <body> <div class="navbar"><a class="pre" href="Ocsigen_lib.String.html" title="Ocsigen_lib.String">Previous</a> <a class="up" href="Ocsigen_lib.html" title="Ocsigen_lib">Up</a> <a class="post" href="Ocsigen_lib.Filename.html" title="Ocsigen_lib.Filename">Next</a> </div> <h1>Module <a href="type_Ocsigen_lib.Ip_address.html">Ocsigen_lib.Ip_address</a></h1> <pre><span class="keyword">module</span> Ip_address: <code class="code">sig</code> <a href="Ocsigen_lib.Ip_address.html">..</a> <code class="code">end</code></pre><hr width="100%"> <pre><code><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> = </code></pre><table class="typetable"> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTt.IPv4"><span class="constructor">IPv4</span></span> <span class="keyword">of</span> <code class="type">int32</code></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTt.IPv6"><span class="constructor">IPv6</span></span> <span class="keyword">of</span> <code class="type">int64 * int64</code></code></td> </tr></table> <pre><span id="VALparse"><span class="keyword">val</span> parse</span> : <code class="type">string -> <a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a> * <a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a> option</code></pre> <pre><span id="VALmatch_ip"><span class="keyword">val</span> match_ip</span> : <code class="type"><a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a> * <a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a> option -><br> <a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a> -> bool</code></pre> <pre><span id="VALnetwork_of_ip"><span class="keyword">val</span> network_of_ip</span> : <code class="type"><a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a> -><br> int32 -> int64 * int64 -> <a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a></code></pre> <pre><span id="EXCEPTIONNo_such_host"><span class="keyword">exception</span> No_such_host</span></pre> <pre><span id="VALinet6_addr_loopback"><span class="keyword">val</span> inet6_addr_loopback</span> : <code class="type"><a href="Ocsigen_lib.Ip_address.html#TYPEt">t</a></code></pre> <pre><span id="VALget_inet_addr"><span class="keyword">val</span> get_inet_addr</span> : <code class="type">string -> Unix.inet_addr Lwt.t</code></pre></body></html>