'Insert the given client into collection at position of the current.
Use parameter \'offset_to_current\' to specify where the client shall be
inserted. Defaults to zero, which means at position of current client.
Positive values are after the client.'

def add(self, client, offset_to_current=0):

    pos = max(0, (self._current_idx + offset_to_current))
    if (pos < len(self.clients)):
        self.clients.insert(pos, client)
    else:
        self.clients.append(client)
