Crate app_instance_detector

Crate app_instance_detector 

Source
Expand description

This file is part of App Instance Detector, an Autonomo AI, FZCO, Project. autonomo-file-copy is a component of Autonomo AI Programming Agent.

Copyright © 2025 Autonomo AI, FZCO Author: Theodore R. Smith theodore.smith@autonomo.codes GPG Fingerprint: 6CAC F838 454C 8912 8AA2 26DB 89DC D8F1 3BB9 33B3 https://www.phpexperts.pro/ https://www.autonomo.codes/ https://github.com/AutonomoDev/autonomo

This file is proprietary. All rights are reserved.

Functions§

find_all_instances
Finds all running instances by checking ports sequentially and sending a customizable handshake request. Returns a vector of tuples, where each tuple contains the port and the string response received from the running instance.
find_next_available_port
Finds the next available port starting from base_port by checking sequentially.
is_port_in_use
Checks if a port is in use by attempting to connect to it. This function uses a short, fixed timeout.
send_handshake_request
Sends a customizable handshake request to a given port and returns the response.
start_handshake_server
Starts a background handshake server on the given port.