Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

LWP::MainLoop
Give access to an single instance of LWP::EventLoop

LWP::MainLoop - Give access to an single instance of LWP::EventLoop


NAME

LWP::MainLoop - Give access to an single instance of LWP::EventLoop


SYNOPSIS


 use LWP::MainLoop qw(mainloop);

 mainloop->readable(\*STDIN, sub {sysread(STDIN, $buf, 100)});

 mainloop->after(10, sub { print "10 sec later"} );

 mainloop->run;

or


 use LWP::MainLoop qw(readable after run);

 readable(\*STDIN, sub {sysread(STDIN, $buf, 100)});

 after(10, sub { print "10 sec later"} );

 run;


DESCRIPTION

This module gives you access to an single instance of the LWP::EventLoop class. All methods of LWP::EventLoop can be exported and used as a procedural interface. The function mainloop() returns a reference to the single instance.

No functions are exported by default.


SEE ALSO

the LWP::EventLoop manpage


COPYRIGHT

Copyright 1997-1998, Gisle Aas

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy