void set_read_callback(function(mixed:void) read)
Install a function to be called when data is available.