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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def stopServer(servAddr):
    if servAddr.startswith("http"):
        s = ServerProxy(servAddr)
        s.shutdownCaptureMockServer()
    else:
        try:
            ClassicTrafficServer.sendTerminateMessage(servAddr)
        except socket.error: # pragma: no cover - should be unreachable, just for robustness
            print("Could not send terminate message to CaptureMock server at " + servAddr + \
                  ", seemed not to be running anyway.")
        


src/w/l/wlnm-1.0.1/wlnm/wlnsd.py   wlnm(Download)
def stopServer(args):
	return server.stopServer(args)
 
def listprocess(machine):
	return server.listprocess(machine)

src/c/a/CaptureMock-1.0.1/capturemock/__init__.py   CaptureMock(Download)
    def terminate(self):
        if self.serverProcess:
            if self.serverAddress:
                from .server import stopServer
                stopServer(self.serverAddress)