pub fn connect(
args: Config,
actions: &[Action],
close_trigger_frames: Option<CloseTriggerFrames>,
) -> Result<ConnectionSummary, ClientError>
Expand description
Connect to a server and execute provided actions.
Constructs a socket and quiche::Connection based on the provided args
,
then iterates over actions
.
If close_trigger_frames
is specified, h3i will close the connection
immediately upon receiving all of the supplied frames rather than waiting
for the idle timeout. See CloseTriggerFrames
for details.
Returns a ConnectionSummary on success, ClientError on failure.