blib/lib/LaBrea/NetIO.pm

filter: Statementstmt 98.4% 65 / 66 Branchbran 76.9% 20 / 26 Conditioncond 45.4% 5 / 11 MC/DCmcdc 0.0% 0 / 7 Subroutinesub 84.6% 11 / 13 Podpod 75.0% 3 / 4 totaltotal 81.8% 104 / 127 CC 26 SCAR 14.5
CC
26
Cov
87%
fetch
8.7
daemon_handler
6.1
open_tcp
6.1
CRAP 4.3
« blib/lib/LaBrea/Codes.pm ↑ Summary DShield/t/deliver.t »
1 #!/usr/bin/perl
2 package LaBrea::NetIO;
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 #use diagnostics;
5 7 ▶use vars qw($VERSION @ISA @EXPORT_OK );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 $VERSION = do { my @r = (q$Revision: 0.01 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
8  
9 7 ▶use Socket;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use AutoLoader 'AUTOLOAD';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 require Exporter;
12 4 @ISA = qw(Exporter);
13  
14 4 @EXPORT_OK = (@Socket::EXPORT, @Socket::EXPORT_OK, qw(
15 TARPIT_PORT
16 open_listen_sock
17 open_tcp
18 alarm_wrap
19 daemon_handler
20 read_daemon
21 fetch
22 reap_kids
23 set_so_linger
24 ));
25  
26 # autoload declarations
27  
28 sub open_listen_sock;
29 sub open_tcp;
30 sub alarm_wrap;
31 sub daemon_handler;
32 sub fetch;
33 sub read_daemon;
34 sub reap_kids;
35 sub set_so_linger;
36 2 ▶sub TARPIT_PORT { 8686; };
Subroutine TARPIT_PORT: called CC=1 SCAR=0.0
Pod undocumented
37 #
38 sub _fetch;
39 sub _want_daemon;
40 0 ▶sub DESTROY {};
Subroutine DESTROY: not called CC=1 SCAR=0.0
41  
42 4 1;
43 __END__
« blib/lib/LaBrea/Codes.pm ↑ Summary DShield/t/deliver.t »