The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Port::Generator - pick some unused port

SYNOPSIS

    my $port_gen = Port::Generator->new();
    $port_gen->

DESCRIPTION

METHODS

new(%attributes)

%attributes

min

minimal range of ports

default 49152

max

maximal range of ports

default 65535

proto

socket protocol

default tcp

addr

local address

default localhost

port()

try find some unused port from min-max ports range

each port is check for avialable

LICENSE

Copyright (C) Avast Software.

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

AUTHOR

Jan Seidl <seidl@avast.com>