Packages
smppex
0.1.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
alias SMPPEX.Protocol, as: SMPP
alias SMPPEX.Pdu, as: Pdu
@type session :: any
@type ref :: any
@type socket :: port
@type transport :: module
@type protocol :: pid
@type init_error :: any
@type init_reult :: {:ok, session} | init_error
@spec after_init(session) :: any
def after_init(session)
@spec handle_parse_error(session, SMPP.error) :: any
def handle_parse_error(session, error)
@type handle_pdu_result :: :ok | {:ok, session} | {:ok, session, [Pdu.t]} | {:stop, session, [Pdu.t]} | :stop
@spec handle_pdu(session, SMPP.pdu_parse_result) :: handle_pdu_result
def handle_pdu(session, parse_result)
@spec handle_socket_closed(session) :: any
def handle_socket_closed(session)
@spec handle_socket_error(session, any) :: any
def handle_socket_error(session, reason)
@spec handle_stop(session) :: any
def handle_stop(session)
@type send_pdu_result :: :ok | {:error, any}
@spec handle_send_pdu_result(session, Pdu.t, send_pdu_result) :: session
def handle_send_pdu_result(session, pdu, send_pdu_result)
end