Home | History | Annotate | Download | only in scan-view

Lines Matching refs:port

33 def start_browser(port, options):
36 url = 'http://%s:%d'%(options.host, port)
56 def run(port, options, root):
60 port)
62 httpd = ScanView.create_server((options.host, port),
68 def port_is_open(port):
71 t = SocketServer.TCPServer((kDefaultHost,port),None)
85 '--port', dest="port", default=None, type="int",
86 help="Port to listen on. (default=%s)" % kDefaultPort)
109 # Find an open port. We aren't particularly worried about race
110 # conditions here. Note that if the user specified a port we only
112 if options.port is not None:
113 port = options.port
117 port = kDefaultPort + i
120 parser.error('Unable to find usable port in [%d,%d)'%(kDefaultPort,
126 t = thread.start_new_thread(start_browser, (port,options))
128 run(port, options, root)