[Top]
predef::
Stdio
Stdio.File
|
Method Stdio.File()->set_close_callback()
- Method
set_close_callback
-
void set_close_callback(function(mixed:void) close_cb)
- Description
-
This function sets the close_callback for the file. The
close callback is called when the remote end of a socket or
pipe is closed.
The callback is called with the id of the file as argument.
- Note
-
This function does not set the file nonblocking.
- See also
-
set_nonblocking() , close
query_close_callback() , set_read_callback() ,
set_write_callback() , set_id()
|