line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SMS::Handler::Blackhole; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.005_62; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
2970
|
use Carp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
154
|
|
6
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
72
|
|
7
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
62
|
|
8
|
2
|
|
|
2
|
|
12
|
use SMS::Handler; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
116
|
|
9
|
2
|
|
|
2
|
|
13
|
use vars qw(@ISA); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
111
|
|
10
|
2
|
|
|
2
|
|
1118
|
use Net::SMPP::XML; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use Params::Validate qw(:all); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# $Id: Blackhole.pm,v 1.3 2002/12/22 19:03:02 lem Exp $ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
(our $VERSION = q$Revision: 1.3 $) =~ s/Revision //; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $Debug = 0; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
SMS::Handler::Blackhole - Collect any unhandled message |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
use SMS::Handler::Blackhole; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my $h = SMS::Handler::Blackhole->new(); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
$h->handle({ ... }); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This module implements a simple responder class which simply collects |
36
|
|
|
|
|
|
|
any message received. Normally, it should be included as the last |
37
|
|
|
|
|
|
|
object in a handler list. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
The following methods are provided: |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=over 4 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item C<-Enew()> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Creates a new C object. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub new |
50
|
|
|
|
|
|
|
{ |
51
|
|
|
|
|
|
|
my $name = shift; |
52
|
|
|
|
|
|
|
my $class = ref($name) || $name; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
return bless {}, $class; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=pod |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item C<-Ehandle()> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Collects the given SMS. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub handle { SMS_STOP | SMS_DEQUEUE; } |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |
68
|
|
|
|
|
|
|
__END__ |