Exemplo n.º 1
0
    def _do_proxy_send(self, name, value):
        if not (parent_socket and self.proxy_enabled):
            return

        if not self.parent_client:
            self.parent_client = NotifyClient(parent_socket, onClose = self._parent_closed)
            yield from self.parent_client.run()

        yield from self.parent_client.send("{0}={1}".format(name, value))