Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/PyRQ-0.4.1/Mock/mock.py   PyRQ(Download)
                    def closeClient(c):
                        try:
                            self._doResponse(c.request, marshaller.package(Messages.CLOSED(namespace=namespace)))
                            PyRQTimeUtils.delayTime(1)
                            c.request.shutdown(socket.SHUT_WR)
                            if alreadyClosed==True:
                                #    Subsequent close already!
                                self._doResponse(self.request, marshaller.package(Messages.CLOSED(result=False, namespace=namespace)))
                                return
                            self._addClient(self, namespace)

src/p/y/PyRQ-0.4.1/PyRQ/RRQ/RRQ.py   PyRQ(Download)
                def closeClient(clients):
                    while len(clients)>0:
                        c = clients.pop()
                        try:
                            self._doResponse(c.request, marshaller.package(Messages.CLOSED(namespace=namespace)))
                if alreadyClosed==True:
                    #    Subsequent close already!
                    self._doResponse(self.request, marshaller.package(Messages.CLOSED(result=False, namespace=namespace)))
                    return
                self.closeClients(namespace, clientData, marshaller, quiet)