boost::corosio::socket_option::v6_only

Restrict an IPv6 socket to IPv6 only (IPV6_V6ONLY).

Synopsis

class v6_only
    : public boolean_option

Description

When enabled, the socket only accepts IPv6 connections. When disabled, the socket accepts both IPv4 and IPv6 connections (dual‐stack mode).

Example

sock.set_option( socket_option::v6_only( true ) );

Base Classes

Name

Description

boolean_option

Base class for concrete boolean socket options.

Member Functions

Name

Description

operator=

Assign a new value.

data

Return a pointer to the underlying storage.

operator!

Return the negated option value.

resize

Normalize after getsockopt returns fewer bytes than expected.

size

Return the size of the underlying storage.

value

Return the option value.

operator bool

Return the option value.

Static Member Functions

Name

Description

level

Return the protocol level.

name

Return the option name.

Using Declarations

Name

operator=

v6_only

Created with MrDocs