ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.255 by root, Wed Jul 29 13:02:48 2020 UTC vs.
Revision 1.256 by root, Wed Jul 29 15:58:58 2020 UTC

648=item $handle->error ($errno[, $fatal[, $message]]) 648=item $handle->error ($errno[, $fatal[, $message]])
649 649
650Generates an error event, just like AnyEvent::Handle itself would do, i.e. 650Generates an error event, just like AnyEvent::Handle itself would do, i.e.
651calls the C<on_error> callback. 651calls the C<on_error> callback.
652 652
653Te only rerquired parameter is C<$errno>, which sets C<$!>. C<$fatal> 653The only rerquired parameter is C<$errno>, which sets C<$!>. C<$fatal>
654defaults to false and C<$message> defaults to the stringified version 654defaults to false and C<$message> defaults to the stringified version
655of C<$1>. 655of C<$1>.
656 656
657Example: generate C<EIO> when you read unexpected data. 657Example: generate C<EIO> when you read unexpected data.
658 658

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines