queue-put!

Synopsis

(queue-put! queue object)

Parameters

  • queue
  • object

Description

This procedure puts an object into the specified FIFO queue. Possible objects are:

  • arbitrary data as a string
  • a MAC address
  • a MAC address range
  • an IP address
  • an IP address range

It’s not possible to insert empty data (a string / byte vector with length 0), in that case this procedure does nothing.

Side Effects

The object is inserted (if valid).

Return Value

unspecified (ok)

Example

> (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-put! q "")
ok
> (queue-length q)
3
>