ytls_flush()

ytls_flush()#

ytls_flush() flushes both clear and encrypted data in the secure connection.

Prototype

int ytls_flush(
    hytls  ytls,
    hsskt  sskt
);

Parameters

Key

Type

Description

ytls

hytls

TLS context handle.

sskt

hsskt

Secure socket handle.


Return Value

Returns 0 on success, or a negative value on failure.

Notes

This function ensures that any pending clear or encrypted data is processed and sent.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples