The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

GSM::SMS::Transport

DESCRIPTION

This can be best seen as a factory for the transports defined in the GSM::SMS::Transport::* modules. When given a config file, it dynamically loads the transports defined in that config file, and initializes them.

METHODS

new( $configfile )

Create a new transport layer with the settings as in the config file. Please look in the example config file for the transport specific configuration settings.

send( $msisdn, $pdu )

Send a PDU message to the the msisdn. The transport layer will choose a transport according to the regular expression defined in the config file. This regexp matches against the msisdn.

$pdu = $t->receive()

Receive a pdu message from the transport layer. Undef when no new message available.

close()

Shut down transport layer, calls the transport specific close method.

AUTHOR

Johan Van den Brande <johan@vandenbrande.com>