def get_free_addresses(self): from _pydev_bundle.pydev_localhost import get_socket_names socket_names = get_socket_names(2, True) port0 = socket_names[0][1] port1 = socket_names[1][1] assert port0 != port1 assert port0 > 0 assert port1 > 0 return port0, port1
def get_free_addresses(self): from _pydev_bundle.pydev_localhost import get_socket_names socket_names = get_socket_names(2, True) port0 = socket_names[0][1] port1 = socket_names[1][1] assert port0 != port1 assert port0 > 0 assert port1 > 0 return port0, port1
def add_command_line_args(self, args): port, client_port = get_socket_names(2, close=True) args.extend((writer.get_pydevconsole_file(), str(port[1]), str(client_port[1]))) self.port = port self.client_port = client_port server = SimpleXMLRPCServer(client_port) server.register_function(notify_finished, "NotifyFinished") start_in_daemon_thread(server.serve_forever, []) self.proxy = xmlrpclib.ServerProxy("http://%s:%s/" % port) return args
def get_free_addresses(self): from _pydev_bundle.pydev_localhost import get_socket_names socket_names = get_socket_names(2, close=True) return [socket_name[1] for socket_name in socket_names]
def get_free_addresses(self): from _pydev_bundle.pydev_localhost import get_socket_names socket_names = get_socket_names(2, close=True) return [socket_name[1] for socket_name in socket_names]