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