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

Stem::Socket::Accept::new

This constructor creates a listen socket (using the optional address arguments) and when a connection is ready to be accepted it triggers its object. The callback method is passed the accepted socket as its first argument.

            'object'        => <required object to trigger>
    
            'method' =>
                    <method to call (default is 'accepted').
                    the accepted socket is passed as the first argument>
    
            'port' => <port to listen on (default is 10000)>
    
            'host' => <host/ip to listen on (default is IN_ANY)>
    
            'listen'        => <max number of pending accepts (default 5)>