docs: def _add_hook(self, socket, callback):
          """Generic hook. The passed socket has to be "receive only".
          """
          self._hooks.append(socket)
          self._hooks_cb[socket] = callback
          if self.poller:
              self.poller.register(socket, POLLIN)