<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># NAME

Port::Generator - pick some unused port

# SYNOPSIS

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

# 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 &lt;seidl@avast.com&gt;
</pre></body></html>