fn writeAllEnd(c: *Client, stream: anytype, bytes: []const u8, end: bool) !void

Sends TLS-encrypted data to stream, which must conform to StreamInterface. If end is true, then this function additionally sends a close_notify alert, which is necessary for the server to distinguish between a properly finished TLS session, or a truncation attack.

Parameters

c: *Client,
stream: anytype,
bytes: []const u8,
end: bool,