Module Uri_IP

module Uri_IP: sig .. end
Handle IPv4 and IPv6 addresses as used in URIs.
Author(s): Richard Mortier <mort@cantab.net>

type byte 
Type alias for a byte.
val byte_to_int32 : byte -> int32
Convert Uri_IP.byte to Int32.
type bytes 
Type alias for a sequence of bytes.
val bytes : string -> bytes
val bytes_to_string : bytes -> string
type ipv4 = Int32.t 
Simple representation of an IPv4 address as Int32.
val ipv4_to_string : ipv4 -> string
Standard dotted quad string representation of an IPv4 address.
val string_to_ipv4 : string -> ipv4
Parse standard dotted quad string representation of an IPv4 address.
val bytes_to_ipv4 : bytes -> ipv4
Generate numeric IPv4 address from a packed bytestring.
type ipv6 = int32 * int32 * int32 * int32 
Simple representation of an IPv6 address (128 bits).
val ipv6_to_string : ipv6 -> string
Standard string representation of an IPv6 address. Note this is not yet canonicalised per RFC 5952.
val bytes_to_ipv6 : bytes -> ipv6
Generate numeric -- 4-tuple of Int32, as above -- IPv6 address from packed bytestring.