Extracted from Pike v7.4 release 97 at 2004-08-02.
pike.ida.liu.se
[Top]
predef::
Stdio
Stdio.File

Method Stdio.File()->set_read_callback()


Method set_read_callback

void set_read_callback(function(mixed:void) read_cb)

Description

This function sets the read_callback for the file. The read_callback is called whenever there is data to read from the file.

The callback is called with the id of the file as first argument and some or all of its data as second.

Note

This function does not set the file nonblocking.

See also

set_nonblocking() , read() , query_read_callback() , set_write_callback() , set_close_callback() , set_read_oob_callback set_write_oob_callback() , set_id()