… | |
… | |
8 | use IO::Socket::INET; |
8 | use IO::Socket::INET; |
9 | |
9 | |
10 | our $LISTEN = new IO::Socket::INET |
10 | our $LISTEN = new IO::Socket::INET |
11 | LocalPort => cf::settings->csport, |
11 | LocalPort => cf::settings->csport, |
12 | Listen => 1, |
12 | Listen => 1, |
13 | Blocking => 0, # bugfix workaround for Event calling handler twice :( |
13 | Blocking => 0, |
14 | ReuseAddr => 1; |
14 | ReuseAddr => 1; |
15 | |
15 | |
16 | if (!$LISTEN) { |
16 | if (!$LISTEN) { |
17 | # extension yes, completely stupid, not yet |
17 | # extension yes, completely stupid, not yet |
18 | warn "unable to establish listen socket, exiting.\n"; |
18 | warn "unable to establish listen socket, exiting.\n"; |