Example of a perl callback with send()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Cyrus::IMAP perl library describes send() this way:

       $client->send(\&callback, \&cbdata, $format, ...);

However, none of the examples I could find uses the callback and
callback data arguments.  Does anybody have an example of how
these are used.

I'm designing a perl script that makes several IMAP connections to
the server, to send long-running commands in parallel.  In this case,
the script can't block on a send().  It needs to issue all of them
and then poll for results.  I'm assuming that a perl callback along
with processoneevent() will make this possible.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux