Crate donut_lib

Source

Modules§

opts
serialize

Functions§

handle_ap_listen
Listens for AP state updates and prints each update that is received.
handle_connect
Issues a connect call to the client policy layer and waits for the connection process to complete.
handle_get_saved_networks
Issues a call to the client policy layer to get saved networks and prints all saved network configurations.
handle_listen
Listens for client state updates and prints each update that is received. Updates are printed in the following format:
handle_remove_network
Communicates with the client policy layer to remove a network. This will also get the list of saved networks before and after to indicate whether anything was removed, since there is no error if the specified network was never saved.
handle_save_network
Communicates with the client policy layer to save a network configuration.
handle_scan
Issues a scan request to the client policy layer.
handle_start_ap
Asks the policy layer to start an AP with the user’s specified network configuration.
handle_start_client_connections
Requests that the policy layer start client connections.
handle_stop_all_aps
Requests that the policy layer stop all AP interfaces.
handle_stop_ap
Requests that the policy layer stop the AP associated with the given network configuration.
handle_stop_client_connections
Asks the client policy layer to stop client connections.
handle_suggest_ap_mac
print_saved_networks
Iterates through a vector of network configurations and prints their contents.
print_scan_results
Iterates through a vector of scan results and prints each one.
print_serialized_saved_networks
Prints a serialized version of saved networks
restore_serialized_config
Deserializes the output of serialize_saved_networks and saves them