15 Aug 2012 05:20:37 UTC
- Distribution: POE-Component-Resolver
- Module version: 0.921
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (6772 / 38 / 4)
- KwaliteeBus factor: 1
- 55.17% Coverage
- License: perl_5
- Activity24 month
- Download (27.83KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionRCAPUTO Rocco Caputo
POE::Component::Resolver::Sidecar - delegate subprocess to call getaddrinfo()
Used internally by POE::Component::Resolver.
POE::Component::Resolver creates subprocesses to call getaddrinfo() so that the main program doesn't block during that time.
The actual getaddrinfo() calling code is abstracted into this module so it can be run in a separate executable program. This reduces the memory footprint of forking the entire main process for just getaddrinfo().
It's a strong, useful pattern that other POE::Components have implemented before. POE::Quickie does it generically. POE::Component::SimpleDBI and POE::Component::EasyDBI do it so their DBI subprocesses are relatively lightweight.
The main code to read POE::Component::Resolver requests from STDIN and write getaddrinfo() responses to STDOUT.
POE::Component::Generic is one generic implementation of this pattern.
POE::Quickie is another generic implementation of this pattern.
Except where otherwise noted, this distribution is Copyright 2011 by Rocco Caputo. All rights reserved. This distribution is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install POE::Component::Resolver, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install POE::Component::Resolver
For more information on module installation, please visit the detailed CPAN module installation guide.