Home | History | Annotate | Download | only in bin

Lines Matching refs:port

37 def start_browser(port, options):
41 url = 'http://%s:%d' % (options.host, port)
62 def run(port, options, root):
73 port)
75 httpd = ScanView.create_server((options.host, port),
82 def port_is_open(port):
85 t = SocketServer.TCPServer((kDefaultHost, port), None)
100 parser.add_argument('--port', dest="port", default=None, type=int,
101 help="Port to listen on. (default=%s)" % kDefaultPort)
121 # Find an open port. We aren't particularly worried about race
122 # conditions here. Note that if the user specified a port we only
124 if args.port is not None:
125 port = args.port
129 port = kDefaultPort + i
132 parser.error('Unable to find usable port in [%d,%d)' %
138 t = thread.start_new_thread(start_browser, (port, args))
140 run(port, args, args.root)