(queue-get! queue)
This procedure retrieves the next available data item from the FIFO queue and returns it as a string. If the queue is empty #f is returned.
The queue may be modified.
Data as a string.
> (define q (queue-create))
q
> (queue-put! q "test")
ok
> (queue-put! q '10.1.1.1)
ok
> (queue-put! q 'fe80::eeee)
ok
> (queue-length q)
3
> (queue-get! q)
"test"
> (queue-get! q)
"\000\000\000\000\000\000\000\000\000\000\255\255\010\001\001\001"
> (queue-get! q)
"\254\128\000\000\000\000\000\000\000\000\000\000\000\000\238\238"
> (queue-get! q)
#f
>