Event::IO::Record - buffered asynchronous I/O, timeouts
If true (default), generate an init_event immediately (otherwise you must call init_event later).
Default timeout; see Timeout method.
Input/output record separators; default irs => "\r?[\0\n]", ors => "\n".
Handle for connection, should be an IO::Socket object (::INET or ::UNIX).
Time is the time in seconds; 0 disables; undef reinitializes the current value. We generates a timeout_event when the timer expires.
Initialization event, called before anything else happens.
Data is available for reading. We buffer it up and emit lines to derived classes as line_events.
line_event
Override in derived class to process incoming data.
Buffered write.
Write event - handle buffered writes.
Disable or restart inactivity timer.
Inactivity timeout event.
Remove event handlers, this will close the connection (as long as no other outstanding references exist).
Return true iff socket is closed.
Log error, subclasses may do more.
Get/set input record separator.
Get/set output record separator.
David B. Robins <dbrobins@davidrobins.net>
To install Event::IO::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Event::IO::Server
CPAN shell
perl -MCPAN -e shell install Event::IO::Server
For more information on module installation, please visit the detailed CPAN module installation guide.