find_all_instances

Function find_all_instances 

Source
pub fn find_all_instances(
    base_port: u16,
    max_search: u16,
    timeout: Duration,
    request_message: &[u8],
) -> Vec<(u16, String)>
Expand description

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.

The request_message is the byte sequence sent to each potential instance. The timeout applies to both connecting and reading the response.