SMPPEX.Session.handle_resp
You're seeing just the callback
handle_resp
, go back to SMPPEX.Session module for more information.
Specs
handle_resp(pdu :: SMPPEX.Pdu.t(), original_pdu :: SMPPEX.Pdu.t(), state()) :: {:ok, state()} | {:ok, [SMPPEX.Pdu.t()], state()} | {:stop, reason(), state()}
Invoked when the session receives a response to a previously sent PDU.
pdu
argument contains the received response PDU, original_pdu
contains
the previously sent pdu for which the handled response is received.
The callback return values indicate the following:
{:ok, state}
— usestate
as the new session state;{:ok, pdus, state}
— usestate
as the new session state and additionally sendpdus
to the connection;{:stop, reason, state}
— stop with reasonreason
and usestate
as the new session state.