MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / is_port_in_use

Function is_port_in_use

eval_code/recons/models/pi3/utils/debug.py:36–38  ·  view source on GitHub ↗
(host, port)

Source from the content-addressed store, hash-verified

34 print(f"Updated {launch_file_path} with host: {host} and port: {port}")
35
36def is_port_in_use(host, port):
37 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
38 return s.connect_ex((host, port)) == 0
39
40def setup_debug(is_main_process=True, max_retries=10, port_range=(10000, 20000)):
41 if is_main_process:

Callers 1

setup_debugFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected