Function husarion_ugv_utils::IsPortAvailable
Defined in File networking_utils.hpp
Function Documentation
-
inline bool husarion_ugv_utils::IsPortAvailable(int port)
Checks if a given port is available for use.
This function attempts to bind a socket to the specified port to determine if it is available.
- Parameters:
port – The port number to check.
- Returns:
true if the port is available, false otherwise.