Lines Matching defs:port
22 Run "pydoc -p <port>" to start an HTTP server on the given port on the
23 local machine. Port number 0 can be used to get an arbitrary unused port.
25 Run "pydoc -b" to start an HTTP server on an arbitrary unused port and
27 the -n and -p options to control the hostname and port used.
2287 def _start_server(urlhandler, hostname, port):
2288 """Start an HTTP server thread on a specific port.
2305 Start server thread on port 0.
2306 If you use port 0, the server will pick a random port number.
2307 You can then use serverthread.port to get the port number.
2309 >>> port = 0
2310 >>> serverthread = pydoc._start_server(my_url_handler, port)
2372 def __init__(self, host, port, callback):
2374 self.address = (self.host, port)
2393 def __init__(self, urlhandler, host, port):
2396 self.port = int(port)
2408 docsvr = DocServer(self.host, self.port, self.ready)
2417 self.port = server.server_port
2418 self.url = 'http://%s:%d/' % (self.host, self.port)
2430 thread = ServerThread(urlhandler, hostname, port)
2675 def browse(port=0, *, open_browser=True, hostname='localhost'):
2678 Use port '0' to start the server on an arbitrary port.
2682 serverthread = _start_server(_url_handler, hostname, port)
2765 port = 0
2776 port = val
2784 browse(port, hostname=hostname, open_browser=open_browser)
2824 {cmd} -p <port>
2825 Start an HTTP server on the given port on the local machine. Port
2826 number 0 can be used to get an arbitrary unused port.
2829 Start an HTTP server on an arbitrary unused port and open a web browser