Tls module

write_some

procedure · 1 overloadSource

Waits until the library has accepted at least one byte of bytes and sends it, together with the records of as many more bytes as fit in BATCH_BYTES; returns how many it took.

write_some :: (stream: *Tls_Stream, bytes: [] u8) -> (s64, Io.Io_Error)

Waits until the library has accepted at least one byte of bytes and sends it, together with the records of as many more bytes as fit in BATCH_BYTES; returns how many it took.

Parameters

stream: *Tls_Stream
the stream to write to.
bytes: [] u8
the data to send. Only a part may be taken.

Returns

s64

See also