Module util

Source

Structs§

Address

Constants§

IANA_RECOMMEND_DYNAMIC_PORT_RANGE_END
IANA_RECOMMEND_DYNAMIC_PORT_RANGE_START
see more: https://www.rfc-editor.org/rfc/rfc6335.html#section-6

Functions§

bind_listen_to_free_port_in_range
Bind to any available port within the specified range on ip, then return the socket
bind_tcp_listener
connect_tcp_stream
create_file_with_len
format_data_size
Format a value to a human readable byte magnitude description
get_free_port
Bind to port 0 on ip, which tells the OS to assign any available port, then retrieve the socket address from the listener.
get_free_port_in_range
Bind to any available port within the specified range on ip, then retrieve the socket address from the listener.
incremental_rw
read_server_cmd
read_server_response
read_server_response_with_buf
Provide your own buffer to allow for buffer reuse
server_handshake
Do the basic handshake from the serverside to ensure we’re talking to a QFT client
verbosity_to_args
Converts the verbosity from the config back to the command-line arguments that would produce that verbosity