Pike v8.1 release 6

Method SSL.Connection()->to_write()


Method to_write

int(-1..2) to_write(Stdio.Buffer output)

Description

Extracts data from the packet queues. Returns 2 if data has been written, 0 if there are no pending packets, 1 of the connection is being closed politely, and -1 if the connection died unexpectedly.

This function is intended to be called from an i/o write callback.

See also

query_write_queue_size(), send_streaming_data().