POE::Component::Server::Postfix::TCP - POE::Component::Server::Postfix::TCP documentation


POE-Component-Server-Postfix documentation Contained in the POE-Component-Server-Postfix distribution.

Index


Code Index:

NAME

Top

POE::Component::Server::Postfix::TCP

VERSION

Top

version 0.001

METHODS

Top

socketfactory_args

AUTHOR

Top

  Hans Dieter Pearcey <hdp@cpan.org>

COPYRIGHT AND LICENSE

Top


POE-Component-Server-Postfix documentation Contained in the POE-Component-Server-Postfix distribution.

use strict;
use warnings;

package POE::Component::Server::Postfix::TCP;
our $VERSION = '0.001';


use MooseX::POE;
extends 'POE::Component::Server::Postfix';

has port => (is => 'ro', isa => 'Int', required => 1);
has host => (is => 'ro', isa => 'Str', default => '0.0.0.0');


sub socketfactory_args {
  my ($self) = @_;
  return (
    SocketDomain => Socket::AF_INET,
    BindAddress => $self->host,
    BindPort    => $self->port,
  );
}

1;

__END__