def _sconnect(self, prefix, *addresses): for address in addresses: self.last_rc = self._connect(prefix + tobytes(address)) self.connections[unique_id()] = self.last_rc return self
def id(self): return unique_id()
def _sbind(self, prefix, *addresses): for address in addresses: self.last_rc = self._bind(prefix + tobytes(address)) self.bindings[unique_id()] = self.last_rc return self