… | |
… | |
1030 | If you want to sprinkle loads of logging calls around your code, |
1030 | If you want to sprinkle loads of logging calls around your code, |
1031 | consider creating a logger callback with the "AnyEvent::Log::logger" |
1031 | consider creating a logger callback with the "AnyEvent::Log::logger" |
1032 | function, which can reduce typing, codesize and can reduce the |
1032 | function, which can reduce typing, codesize and can reduce the |
1033 | logging overhead enourmously. |
1033 | logging overhead enourmously. |
1034 | |
1034 | |
|
|
1035 | AnyEvent::fh_block $filehandle |
|
|
1036 | AnyEvent::fh_unblock $filehandle |
|
|
1037 | Sets blocking or non-blocking behaviour for the given filehandle. |
|
|
1038 | |
1035 | WHAT TO DO IN A MODULE |
1039 | WHAT TO DO IN A MODULE |
1036 | As a module author, you should "use AnyEvent" and call AnyEvent methods |
1040 | As a module author, you should "use AnyEvent" and call AnyEvent methods |
1037 | freely, but you should not load a specific event module or rely on it. |
1041 | freely, but you should not load a specific event module or rely on it. |
1038 | |
1042 | |
1039 | Be careful when you create watchers in the module body - AnyEvent will |
1043 | Be careful when you create watchers in the module body - AnyEvent will |
… | |
… | |
2121 | |
2125 | |
2122 | Development/Debugging: AnyEvent::Strict (stricter checking), |
2126 | Development/Debugging: AnyEvent::Strict (stricter checking), |
2123 | AnyEvent::Debug (interactive shell, watcher tracing). |
2127 | AnyEvent::Debug (interactive shell, watcher tracing). |
2124 | |
2128 | |
2125 | Supported event modules: AnyEvent::Loop, EV, EV::Glib, Glib::EV, Event, |
2129 | Supported event modules: AnyEvent::Loop, EV, EV::Glib, Glib::EV, Event, |
2126 | Glib::Event, Glib, Tk, Event::Lib, Qt, POE, FLTK. |
2130 | Glib::Event, Glib, Tk, Event::Lib, Qt, POE, FLTK, Cocoa::EventLoop, UV. |
2127 | |
2131 | |
2128 | Implementations: AnyEvent::Impl::EV, AnyEvent::Impl::Event, |
2132 | Implementations: AnyEvent::Impl::EV, AnyEvent::Impl::Event, |
2129 | AnyEvent::Impl::Glib, AnyEvent::Impl::Tk, AnyEvent::Impl::Perl, |
2133 | AnyEvent::Impl::Glib, AnyEvent::Impl::Tk, AnyEvent::Impl::Perl, |
2130 | AnyEvent::Impl::EventLib, AnyEvent::Impl::Qt, AnyEvent::Impl::POE, |
2134 | AnyEvent::Impl::EventLib, AnyEvent::Impl::Qt, AnyEvent::Impl::POE, |
2131 | AnyEvent::Impl::IOAsync, Anyevent::Impl::Irssi, AnyEvent::Impl::FLTK. |
2135 | AnyEvent::Impl::IOAsync, AnyEvent::Impl::Irssi, AnyEvent::Impl::FLTK, |
|
|
2136 | AnyEvent::Impl::Cocoa, AnyEvent::Impl::UV. |
2132 | |
2137 | |
2133 | Non-blocking handles, pipes, stream sockets, TCP clients and servers: |
2138 | Non-blocking handles, pipes, stream sockets, TCP clients and servers: |
2134 | AnyEvent::Handle, AnyEvent::Socket, AnyEvent::TLS. |
2139 | AnyEvent::Handle, AnyEvent::Socket, AnyEvent::TLS. |
2135 | |
2140 | |
2136 | Asynchronous File I/O: AnyEvent::IO. |
2141 | Asynchronous File I/O: AnyEvent::IO. |