Enum IpMode

Enum Documentation

enum class kiwix::IpMode

IpMode is used to configure a Server object to listen for incoming connections not on a single IP address but on all addresses of the specified family.

Values:

enumerator IPV4

Listen on all IPv4 addresses.

enumerator IPV6

Listen on all IPv6 addresses.

enumerator ALL

Listen on all available addresses.

enumerator AUTO

IpMode::AUTO (which is the default) must be used when an explicit (non-empty) IP address for listening is provided via Server::setAddress(). If no such address is enforced, then IpMode::AUTO is equivalent to IpMode::ALL.