Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f16b2c9a3325a822fd1eb48009411dd9 > files > 19

ocaml-uri-devel-1.3.8-2.mga4.x86_64.rpm

<!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="Uri_re.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Uri" rel="Chapter" href="Uri.html">
<link title="Uri_re" rel="Chapter" href="Uri_re.html">
<link title="Uri_IP" rel="Chapter" href="Uri_IP.html"><title>Uri_IP</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Uri_re.html" title="Uri_re">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;</div>
<h1>Module <a href="type_Uri_IP.html">Uri_IP</a></h1>

<pre><span class="keyword">module</span> Uri_IP: <code class="code">sig</code> <a href="Uri_IP.html">..</a> <code class="code">end</code></pre><div class="info module top">
Handle IPv4 and IPv6 addresses as used in URIs.<br>
<b>Author(s):</b> Richard Mortier &lt;mort@cantab.net&gt;<br>
</div>
<hr width="100%">

<pre><span id="TYPEbyte"><span class="keyword">type</span> <code class="type"></code>byte</span> </pre>
<div class="info ">
Type alias for a byte.<br>
</div>


<pre><span id="VALbyte_to_int32"><span class="keyword">val</span> byte_to_int32</span> : <code class="type"><a href="Uri_IP.html#TYPEbyte">byte</a> -> int32</code></pre><div class="info ">
Convert <a href="Uri_IP.html#TYPEbyte"><code class="code">Uri_IP.byte</code></a> to <code class="code">Int32</code>.<br>
</div>

<pre><span id="TYPEbytes"><span class="keyword">type</span> <code class="type"></code>bytes</span> </pre>
<div class="info ">
Type alias for a sequence of bytes.<br>
</div>


<pre><span id="VALbytes"><span class="keyword">val</span> bytes</span> : <code class="type">string -> <a href="Uri_IP.html#TYPEbytes">bytes</a></code></pre>
<pre><span id="VALbytes_to_string"><span class="keyword">val</span> bytes_to_string</span> : <code class="type"><a href="Uri_IP.html#TYPEbytes">bytes</a> -> string</code></pre>
<pre><span id="TYPEipv4"><span class="keyword">type</span> <code class="type"></code>ipv4</span> = <code class="type">Int32.t</code> </pre>
<div class="info ">
Simple representation of an IPv4 address as <code class="code">Int32</code>.<br>
</div>


<pre><span id="VALipv4_to_string"><span class="keyword">val</span> ipv4_to_string</span> : <code class="type"><a href="Uri_IP.html#TYPEipv4">ipv4</a> -> string</code></pre><div class="info ">
Standard dotted quad string representation of an IPv4 address.<br>
</div>

<pre><span id="VALstring_to_ipv4"><span class="keyword">val</span> string_to_ipv4</span> : <code class="type">string -> <a href="Uri_IP.html#TYPEipv4">ipv4</a></code></pre><div class="info ">
Parse standard dotted quad string representation of an IPv4 address.<br>
</div>

<pre><span id="VALbytes_to_ipv4"><span class="keyword">val</span> bytes_to_ipv4</span> : <code class="type"><a href="Uri_IP.html#TYPEbytes">bytes</a> -> <a href="Uri_IP.html#TYPEipv4">ipv4</a></code></pre><div class="info ">
Generate numeric IPv4 address from a packed bytestring.<br>
</div>

<pre><span id="TYPEipv6"><span class="keyword">type</span> <code class="type"></code>ipv6</span> = <code class="type">int32 * int32 * int32 * int32</code> </pre>
<div class="info ">
Simple representation of an IPv6 address (128 bits).<br>
</div>


<pre><span id="VALipv6_to_string"><span class="keyword">val</span> ipv6_to_string</span> : <code class="type"><a href="Uri_IP.html#TYPEipv6">ipv6</a> -> string</code></pre><div class="info ">
Standard string representation of an IPv6 address.
    Note this is not yet canonicalised per RFC 5952.<br>
</div>

<pre><span id="VALbytes_to_ipv6"><span class="keyword">val</span> bytes_to_ipv6</span> : <code class="type"><a href="Uri_IP.html#TYPEbytes">bytes</a> -> <a href="Uri_IP.html#TYPEipv6">ipv6</a></code></pre><div class="info ">
Generate numeric -- 4-tuple of Int32, as above -- IPv6 address from packed
    bytestring.<br>
</div>
</body></html>