add-input-hook! -- Add an input hook to run PROC on input from PORT.


(add-input-hook! port proc)


Add an input hook to run proc on input from port. Whenever input becomes available on port, procedure proc will be called with no arguments repeatedly until no unprocessed input remains on port. port must be open, it must be an input port, and it must be a file port (this includes pipes and sockets, but not string ports or soft ports). A handle suitable for passing to remove-input-hook! is returned.

Implementation Notes

Module: Built-in Primitive

Defined in src/callbacks.c at line 709 (CVS log)