add_range


Description:

public bool add_range (string min_address, string max_address, uint16 min_port, uint16 max_port, uint8 ttl)

Adds the addresses from min_addess to max_address (inclusive) to this.

The valid port range for the addresses will be from min_port to max_port inclusive.

When ttl is 0, min_address and max_address should be unicast addresses. min_address and max_address can be set to ANY_IPV4 or ANY_IPV6 to bind to all available IPv4 or IPv6 addresses.

When ttl > 0, min_address and max_address should be multicast addresses.

Parameters:

this

a AddressPool

min_address

a minimum address to add

max_address

a maximum address to add

min_port

the minimum port

max_port

the maximum port

ttl

a TTL or 0 for unicast addresses

Returns:

true if the addresses could be added.




2022 vala-language.org