Packages
smppex
1.0.1
3.3.0
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
retired
3.1.0
retired
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.1
2.0.0
1.0.1
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
SMPP 3.4 protocol and framework implemented in Elixir
Current section
Files
Jump to
Current section
Files
lib/smppex/smpp_handler.ex
defprotocol SMPPEX.SMPPHandler do
@moduledoc false
alias SMPPEX.Protocol, as: SMPP
alias SMPPEX.Pdu, as: Pdu
@type session :: term
@type ref :: term
@type socket :: port
@type transport :: module
@type protocol :: pid
@type init_error :: term
@type init_reult :: {:ok, session} | init_error
@type stop_reason :: term
@type handle_pdu_result :: :ok | {:ok, session} | {:ok, session, [Pdu.t]} | {:stop, session, [Pdu.t], :stop_reason} | {:stop, stop_reason}
@spec handle_pdu(session, SMPP.pdu_parse_result) :: handle_pdu_result
def handle_pdu(session, parse_result)
@spec handle_stop(session, stop_reason) :: any
def handle_stop(session, reason)
@type send_pdu_result :: :ok | {:error, term}
@spec handle_send_pdu_result(session, Pdu.t, send_pdu_result) :: session
def handle_send_pdu_result(session, pdu, send_pdu_result)
end