ipv4_address

An IP version 4 style address.

Synopsis

class ipv4_address ;

Declared in file <boost/url/ipv4_address.hpp> at line 53

Types

Name Description
uint_type

The type used to represent an address as an unsigned integer

bytes_type

The type used to represent an address as an array of bytes

Member Functions

Name Description
ipv4_address

Constructor.

ipv4_address

Constructor.

operator=

Copy Assignment.

ipv4_address

Construct from an unsigned integer.

ipv4_address

Construct from an array of bytes.

ipv4_address

Construct from a string.

to_bytes

Return the address as bytes, in network byte order.

to_uint

Return the address as an unsigned integer.

to_string

Return the address as a string in dotted decimal format

to_buffer

Write a dotted decimal string representing the address to a buffer

is_loopback

Return true if the address is a loopback address

is_unspecified

Return true if the address is unspecified

is_multicast

Return true if the address is a multicast address

Description

Objects of this type are used to construct, parse, and manipulate IP version 6 addresses.

BNF

IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet dec-octet = DIGIT ; 0-9 / %x31-39 DIGIT ; 10-99 / "1" 2DIGIT ; 100-199 / "2" %x30-34 DIGIT ; 200-249 / "25" %x30-35 ; 250-255

Specification

  • IPv4 (Wikipedia)
  • 3.2.2. Host (rfc3986)