Returns the OSCTarget matching the given address as a ('osc:// : [ ]', [' ', ...])' tuple. 'address' can be a (host, port) tuple, or a 'host' (string), in which case the first matching OSCTarget is returned Returns (None, []) if address not found.
(self, address)
| 1456 | self.targets[(host, port)] = val |
| 1457 | |
| 1458 | def getOSCTargetStr(self, address): |
| 1459 | """Returns the OSCTarget matching the given address as a ('osc://<host>:<port>[<prefix>]', ['<filter-string>', ...])' tuple. |
| 1460 | 'address' can be a (host, port) tuple, or a 'host' (string), in which case the first matching OSCTarget is returned |
| 1461 | Returns (None, []) if address not found. |
| 1462 | """ |
| 1463 | (addr, (prefix, filters)) = self.getOSCTarget(address) |
| 1464 | if addr == None: |
| 1465 | return (None, []) |
| 1466 | |
| 1467 | return ("osc://%s" % getUrlStr(addr, prefix), getFilterStr(filters)) |
| 1468 | |
| 1469 | def getOSCTargetStrings(self): |
| 1470 | """Returns a list of all OSCTargets as ('osc://<host>:<port>[<prefix>]', ['<filter-string>', ...])' tuples. |
no test coverage detected