NAME
GSM::SMS::Spool
DESCRIPTION
Implements a simple filesystem spool mechanism to temporarily store incoming and outgoing SMS messages.
METHODS
- new - Constructor
- get_spool_dir - get the spool directory
- add_to_spool - Add a pdu for a msisdn to the spool.
-
$spool->add_to_spool( $msisdn, $pdu );
- remove_from_spool - Delete a file from the spool
-
$spool->remove_from_spool( $file );
- read_from_spool - Read n files from the spool.
-
@spool = $spool->read_from_spool( $n ); $msisdn = $spool[0]->{'msisdn'}; $pdu = $spool[0]->{'pdu'}; $filename = $spool[0]->{'file'};
- create_spoolname - Create a filename for a spool object.
-
my $name = $spool->create_spoolname( $msisdn, $pdu );
AUTHOR
Johan Van den Brande <johan@vandenbrande.com>