SMPPEX.Session.handle_cast

You're seeing just the callback handle_cast, go back to SMPPEX.Session module for more information.
Link to this callback

handle_cast(request, state)

View Source

Specs

handle_cast(request(), state()) ::
  {:noreply, state()}
  | {:noreply, [SMPPEX.Pdu.t()], state()}
  | {:stop, reason(), state()}

Invoked to handle an arbitrary asyncronous request sent to the session with Session.cast/2 method.

The returned values indicate the following:

  • {:noreply, state} — use state as the new state;
  • {:noreply, pdus, state} — use state as the new state and additionally send pdus to the peer.;
  • {:stop, reason, state} — use state as the new state and exit with reason.