(queue-get-ipaddr-range! queue)
This procedure retrieves the next available data item from the FIFO queue if it can be interpreted as an IP address range (length == 32). If the next element has a different size or if the queue is empty, #f is returned.
The queue may be modified.
An IP address range or #f.
> (define q (queue-create))
q
> (queue-put! q '10.3.3.3-10.3.3.255)
ok
> (queue-put! q 'ffff::ffff-ffff::0001:0000)
ok
> (queue-get-ipaddr-range! q)
10.3.3.3-10.3.3.255
> (queue-get-ipaddr! q)
#f
> (queue-get-ipaddr-range! q)
ffff::ffff-ffff::1:0
> (queue-get-ipaddr-range! q)
#f
>