Пример #1
0
 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
Пример #2
0
 def id(self):
     return unique_id()
Пример #3
0
 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