Uri Guttman > stem-0.10 > Stem::Socket

Download:
stem-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  0
View Bugs
Report a bug
Source  

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)>