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::TransportRouter::TransportRouter - Abstract router class

DESCRIPTION

An abstract TransportRouter base class. All concrete transport routers must inherit from this class.

METHODS

new - constructor
route - the actual router method
  $route = $tr->route( $msisdn, @transport_list );

  Return 'undef' when no route found.

  ABSTRACT METHOD - needs to be implemented.
get_transport

When an explicit transport has been given to the constructor, we'll only try to route through this transport. This method can be used to get the name of that specific transport.

AUTHOR

Johan Van den Brande <johan@vandenbrande.com>