Spool - Spool documentation


GSM-SMS documentation  | view source Contained in the GSM-SMS distribution.

Index


NAME

Top

GSM::SMS::Spool

DESCRIPTION

Top

Implements a simple filesystem spool mechanism to temporarily store incoming and outgoing SMS messages.

METHODS

Top

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

Top

Johan Van den Brande <johan@vandenbrande.com>


GSM-SMS documentation  | view source Contained in the GSM-SMS distribution.