def clients(self):
items = []<EOL>ports = None<EOL>for elem in self.query('<STR_LIT>'):<EOL><INDENT>port = elem.attrib.get('<STR_LIT:port>')<EOL>if not port:<EOL><INDENT>log.warning('<STR_LIT>', elem.attrib.get('<STR_LIT:name>'))<EOL>ports = self._myPlexClientPorts() if ports is None else ports<EOL>port = ports.get(elem.attrib.get('<STR_LIT>'))<EOL><DEDENT>baseurl = '<STR_LIT>' % (elem.attrib['<STR_LIT:host>'], port)<EOL>items.append(PlexClient(baseurl=baseurl, server=self,<EOL>token=self._token, data=elem, connect=False))<EOL><DEDENT>return items<EOL>
Returns list of all :class:`~plexapi.client.PlexClient` objects connected to server.