smppex v0.1.1 SMPPEX.Pdu

Summary

Types

header :: {integer, integer, integer} | integer
t :: %SMPPEX.Pdu{command_id: term, command_status: term, mandatory: term, optional: term, ref: term, sequence_number: term}

Functions

bind?(pdu)

Specs

bind?(t) :: boolean
bind_resp?(pdu)

Specs

bind_resp?(t) :: boolean
command_id(pdu)

Specs

command_id(t) :: integer
command_name(pdu)

Specs

command_name(t) :: atom
command_status(pdu)

Specs

command_status(t) :: integer
dest(pdu)

Specs

dest(t) :: {term, term, term}
field(pdu, id)

Specs

field(t, integer | atom) :: any
mandatory_field(pdu, name)

Specs

mandatory_field(t, atom) :: any
mandatory_fields(pdu)

Specs

mandatory_fields(t) :: map
new(header, m_fields \\ %{}, opt_fields \\ %{})

Specs

new(header, map, map) :: t
optional_field(pdu, id)

Specs

optional_field(t, integer | atom) :: any
optional_fields(pdu)

Specs

optional_fields(t) :: map
resp?(pdu)

Specs

resp?(t) :: boolean
same?(pdu1, pdu2)

Specs

same?(t, t) :: boolean
sequence_number(pdu)

Specs

sequence_number(t) :: integer
set_mandatory_field(pdu, name, value)

Specs

set_mandatory_field(t, atom, any) :: t
set_optional_field(pdu, name, value)

Specs

set_optional_field(t, atom, any) :: t
source(pdu)

Specs

source(t) :: {term, term, term}
success_resp?(pdu)

Specs

success_resp?(t) :: boolean