View Source SMPPEX.Pdu.Factory (smppex v3.2.3)
Module for convenient generation of the most common PDUs.
Summary
Types
@type message() :: String.t() | {data_coding :: non_neg_integer(), String.t()}
@type message_state() :: non_neg_integer() | atom()
Functions
@spec bind(atom(), map()) :: SMPPEX.Pdu.t()
@spec bind(atom(), String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
@spec bind_receiver(String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
@spec bind_receiver_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
@spec bind_resp(non_neg_integer(), non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
@spec bind_transceiver(String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
@spec bind_transceiver_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
@spec bind_transmitter(String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
@spec bind_transmitter_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
@spec deliver_sm( SMPPEX.Pdu.addr() | String.t(), SMPPEX.Pdu.addr() | String.t(), message() ) :: SMPPEX.Pdu.t()
@spec deliver_sm_resp(non_neg_integer()) :: SMPPEX.Pdu.t()
Link to this function
delivery_report(message_id, source, dest, message \\ "", message_state \\ :DELIVERED)
View Source@spec delivery_report( String.t(), SMPPEX.Pdu.addr(), SMPPEX.Pdu.addr(), String.t(), message_state() ) :: SMPPEX.Pdu.t()
Link to this function
delivery_report_for_submit_sm(message_id, submit_sm, message \\ "", message_state \\ :DELIVERED)
View Source@spec delivery_report_for_submit_sm( String.t(), SMPPEX.Pdu.t(), String.t(), message_state() ) :: SMPPEX.Pdu.t()
@spec enquire_link() :: SMPPEX.Pdu.t()
@spec enquire_link_resp(non_neg_integer()) :: SMPPEX.Pdu.t()
@spec submit_sm( SMPPEX.Pdu.addr() | String.t(), SMPPEX.Pdu.addr() | String.t(), message(), non_neg_integer() ) :: SMPPEX.Pdu.t()
@spec submit_sm_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
@spec unbind() :: SMPPEX.Pdu.t()
@spec unbind_resp(non_neg_integer()) :: SMPPEX.Pdu.t()