MAN page from Old RedHat 6.X libnet-1.0606-1.i386.rpm
Net::DummyInetd
Section: User Contributed Perl Documentation (3)
Updated: perl 5.005, patch 03
Index NAME
Net::DummyInetd - A dummy Inetd server
SYNOPSIS
use Net::DummyInetd; use Net::SMTP; $inetd = new Net::DummyInetd qw(/usr/lib/sendmail -ba -bs); $smtp = Net::SMTP->new('localhost', Port => $inetd->port); DESCRIPTION
Net::DummyInetd is just what it's name says, it is a dummy inetd server.Creation of a
Net::DummyInetd will cause a child process to be spawned offwhich will listen to a socket. When a connection arrives on this socketthe specified command is fork'd and exec'd with STDIN and STDOUT filedescriptors duplicated to the new socket.
This package was added as an example of how to use Net::SMTP to connectto a sendmail process, which is not the default, via SIDIN and STDOUT.A Net::Inetd package will be available in the next release of libnet
CONSTRUCTOR
- new ( CMD )
- Creates a new object and spawns a child process which listens to a socket.CMD is a list, which will be passed to exec when a new process needsto be created.
METHODS
- port
- Returns the port number on which the DummyInetd object is listening
AUTHOR
Graham Barr <gbarrAATTpobox.com>
COPYRIGHT
Copyright (c) 1995-1997 Graham Barr. All rights reserved.This program is free software; you can redistribute it and/or modifyit under the same terms as Perl itself.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- CONSTRUCTOR
- METHODS
- AUTHOR
- COPYRIGHT
This document was created byman2html,using the manual pages.