pdu

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pdu provide codecs for binary PDU data.

Index

Constants

View Source
const HeaderLen = 16

HeaderLen is the PDU header length.

View Source
const MaxSize = 69632 // Somewhat above 64KiB

MaxSize is the maximum size allowed for a PDU. Any PDU header that tells it is longer will result in a read error.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertNotification added in v0.0.5

type AlertNotification struct {
	// contains filtered or unexported fields
}

AlertNotification PDU.

func (AlertNotification) FieldList added in v0.0.5

func (pdu AlertNotification) FieldList() pdufield.List

FieldList implements the PDU interface.

func (AlertNotification) Fields added in v0.0.5

func (pdu AlertNotification) Fields() pdufield.Map

Fields implement the PDU interface.

func (AlertNotification) Header added in v0.0.5

func (pdu AlertNotification) Header() *Header

Header implements the PDU interface.

func (AlertNotification) Len added in v0.0.5

func (pdu AlertNotification) Len() int

Len implements the PDU interface.

func (AlertNotification) SerializeTo added in v0.0.5

func (pdu AlertNotification) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (AlertNotification) TLVFields added in v0.0.5

func (pdu AlertNotification) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type Bind

type Bind struct {
	// contains filtered or unexported fields
}

Bind PDU.

func (Bind) FieldList

func (pdu Bind) FieldList() pdufield.List

FieldList implements the PDU interface.

func (Bind) Fields

func (pdu Bind) Fields() pdufield.Map

Fields implement the PDU interface.

func (Bind) Header

func (pdu Bind) Header() *Header

Header implements the PDU interface.

func (Bind) Len

func (pdu Bind) Len() int

Len implements the PDU interface.

func (Bind) SerializeTo

func (pdu Bind) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (Bind) TLVFields

func (pdu Bind) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type BindResp

type BindResp struct {
	// contains filtered or unexported fields
}

BindResp PDU.

func (BindResp) FieldList

func (pdu BindResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (BindResp) Fields

func (pdu BindResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (BindResp) Header

func (pdu BindResp) Header() *Header

Header implements the PDU interface.

func (BindResp) Len

func (pdu BindResp) Len() int

Len implements the PDU interface.

func (BindResp) SerializeTo

func (pdu BindResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (BindResp) TLVFields

func (pdu BindResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type Body

type Body interface {
	// Header returns the PDU header, decoded. Header fields
	// can be updated (e.g. Seq) before re-serializing the PDU.
	Header() *Header

	// Len returns the length of the PDU binary data, in bytes.
	Len() int

	// FieldList returns a list of mandatory PDU fields for
	// encoding or decoding the PDU. The order in the list
	// dictates how PDUs are decoded and serialized.
	FieldList() pdufield.List

	// Fields return a decoded map of PDU fields. The returned
	// map can be modified before re-serializing the PDU.
	Fields() pdufield.Map

	// Fields return a decoded map of PDU TLV fields.
	TLVFields() pdutlv.Map

	// SerializeTo encodes the PDU to its binary form, including
	// the header and all fields.
	SerializeTo(w io.Writer) error
}

Body is an abstract Protocol Data Unit (PDU) interface for manipulating PDUs.

func Decode

func Decode(r io.Reader) (Body, error)

Decode decodes binary PDU data. It returns a new PDU object, e.g. Bind, with header and all fields decoded. The returned PDU can be modified and re-serialized to its binary form.

func NewBindReceiver

func NewBindReceiver() Body

NewBindReceiver creates a new Bind PDU.

func NewBindReceiverResp

func NewBindReceiverResp() Body

NewBindReceiverResp creates and initializes a new BindResp PDU.

func NewBindTransceiver

func NewBindTransceiver() Body

NewBindTransceiver creates a new Bind PDU.

func NewBindTransceiverResp

func NewBindTransceiverResp() Body

NewBindTransceiverResp creates and initializes a new BindResp PDU.

func NewBindTransmitter

func NewBindTransmitter() Body

NewBindTransmitter creates a new Bind PDU.

func NewBindTransmitterResp

func NewBindTransmitterResp() Body

NewBindTransmitterResp creates and initializes a new BindResp PDU.

func NewCancelSM added in v0.0.5

func NewCancelSM() Body

NewCancelSM creates and initializes a new CancelSM PDU.

func NewCancelSMResp added in v0.0.5

func NewCancelSMResp() Body

func NewDataSM added in v0.0.5

func NewDataSM() Body

func NewDataSMResp added in v0.0.5

func NewDataSMResp() Body

func NewDeliverSM

func NewDeliverSM() Body

NewDeliverSM creates and initializes a new DeliverSM PDU.

func NewDeliverSMResp

func NewDeliverSMResp() Body

NewDeliverSMResp creates and initializes a new DeliverSMResp PDU.

func NewDeliverSMRespSeq

func NewDeliverSMRespSeq(seq uint32) Body

NewDeliverSMRespSeq creates and initializes a new DeliverSMResp PDU for a specific seq.

func NewEnquireLink() Body

NewEnquireLink creates and initializes a EnquireLink PDU.

func NewEnquireLinkResp

func NewEnquireLinkResp() Body

NewEnquireLinkResp creates and initializes a EnquireLinkResp PDU.

func NewEnquireLinkRespSeq

func NewEnquireLinkRespSeq(seq uint32) Body

NewEnquireLinkRespSeq creates and initializes a EnquireLinkResp PDU for a specific seq.

func NewGenericNACK

func NewGenericNACK() Body

NewGenericNACK creates and initializes a GenericNACK PDU.

func NewQuerySM

func NewQuerySM() Body

NewQuerySM creates and initializes a new QuerySM PDU.

func NewQuerySMResp

func NewQuerySMResp() Body

NewQuerySMResp creates and initializes a new QuerySMResp PDU.

func NewReplaceSM added in v0.0.5

func NewReplaceSM() Body

func NewSubmitMulti

func NewSubmitMulti(fields pdutlv.Fields) Body

NewSubmitMulti creates and initializes a new SubmitMulti PDU.

func NewSubmitMultiResp

func NewSubmitMultiResp() Body

NewSubmitMultiResp creates and initializes a new SubmitMultiResp PDU.

func NewSubmitSM

func NewSubmitSM(fields pdutlv.Fields) Body

NewSubmitSM creates and initializes a new SubmitSM PDU.

func NewSubmitSMResp

func NewSubmitSMResp() Body

NewSubmitSMResp creates and initializes a new SubmitSMResp PDU.

func NewUnbind

func NewUnbind() Body

NewUnbind creates and initializes a Unbind PDU.

func NewUnbindResp

func NewUnbindResp() Body

NewUnbindResp creates and initializes a UnbindResp PDU.

type CancelSM added in v0.0.5

type CancelSM struct {
	// contains filtered or unexported fields
}

CancelSM PDU.

func (CancelSM) FieldList added in v0.0.5

func (pdu CancelSM) FieldList() pdufield.List

FieldList implements the PDU interface.

func (CancelSM) Fields added in v0.0.5

func (pdu CancelSM) Fields() pdufield.Map

Fields implement the PDU interface.

func (CancelSM) Header added in v0.0.5

func (pdu CancelSM) Header() *Header

Header implements the PDU interface.

func (CancelSM) Len added in v0.0.5

func (pdu CancelSM) Len() int

Len implements the PDU interface.

func (CancelSM) SerializeTo added in v0.0.5

func (pdu CancelSM) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (CancelSM) TLVFields added in v0.0.5

func (pdu CancelSM) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type CancelSMResp added in v0.0.5

type CancelSMResp struct {
	// contains filtered or unexported fields
}

CancelSMResp PDU.

func (CancelSMResp) FieldList added in v0.0.5

func (pdu CancelSMResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (CancelSMResp) Fields added in v0.0.5

func (pdu CancelSMResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (CancelSMResp) Header added in v0.0.5

func (pdu CancelSMResp) Header() *Header

Header implements the PDU interface.

func (CancelSMResp) Len added in v0.0.5

func (pdu CancelSMResp) Len() int

Len implements the PDU interface.

func (CancelSMResp) SerializeTo added in v0.0.5

func (pdu CancelSMResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (CancelSMResp) TLVFields added in v0.0.5

func (pdu CancelSMResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type DataSM added in v0.0.5

type DataSM struct {
	// contains filtered or unexported fields
}

DataSM PDU.

func (DataSM) FieldList added in v0.0.5

func (pdu DataSM) FieldList() pdufield.List

FieldList implements the PDU interface.

func (DataSM) Fields added in v0.0.5

func (pdu DataSM) Fields() pdufield.Map

Fields implement the PDU interface.

func (DataSM) Header added in v0.0.5

func (pdu DataSM) Header() *Header

Header implements the PDU interface.

func (DataSM) Len added in v0.0.5

func (pdu DataSM) Len() int

Len implements the PDU interface.

func (DataSM) SerializeTo added in v0.0.5

func (pdu DataSM) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (DataSM) TLVFields added in v0.0.5

func (pdu DataSM) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type DataSMResp added in v0.0.5

type DataSMResp struct {
	// contains filtered or unexported fields
}

DataSMResp PDU.

func (DataSMResp) FieldList added in v0.0.5

func (pdu DataSMResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (DataSMResp) Fields added in v0.0.5

func (pdu DataSMResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (DataSMResp) Header added in v0.0.5

func (pdu DataSMResp) Header() *Header

Header implements the PDU interface.

func (DataSMResp) Len added in v0.0.5

func (pdu DataSMResp) Len() int

Len implements the PDU interface.

func (DataSMResp) SerializeTo added in v0.0.5

func (pdu DataSMResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (DataSMResp) TLVFields added in v0.0.5

func (pdu DataSMResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type DeliverSM

type DeliverSM struct {
	// contains filtered or unexported fields
}

DeliverSM PDU.

func (DeliverSM) FieldList

func (pdu DeliverSM) FieldList() pdufield.List

FieldList implements the PDU interface.

func (DeliverSM) Fields

func (pdu DeliverSM) Fields() pdufield.Map

Fields implement the PDU interface.

func (DeliverSM) Header

func (pdu DeliverSM) Header() *Header

Header implements the PDU interface.

func (DeliverSM) Len

func (pdu DeliverSM) Len() int

Len implements the PDU interface.

func (DeliverSM) SerializeTo

func (pdu DeliverSM) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (DeliverSM) TLVFields

func (pdu DeliverSM) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type DeliverSMResp

type DeliverSMResp struct {
	// contains filtered or unexported fields
}

DeliverSMResp PDU.

func (DeliverSMResp) FieldList

func (pdu DeliverSMResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (DeliverSMResp) Fields

func (pdu DeliverSMResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (DeliverSMResp) Header

func (pdu DeliverSMResp) Header() *Header

Header implements the PDU interface.

func (DeliverSMResp) Len

func (pdu DeliverSMResp) Len() int

Len implements the PDU interface.

func (DeliverSMResp) SerializeTo

func (pdu DeliverSMResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (DeliverSMResp) TLVFields

func (pdu DeliverSMResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type EnquireLink struct {
	// contains filtered or unexported fields
}

EnquireLink PDU.

func (EnquireLink) FieldList

func (pdu EnquireLink) FieldList() pdufield.List

FieldList implements the PDU interface.

func (EnquireLink) Fields

func (pdu EnquireLink) Fields() pdufield.Map

Fields implement the PDU interface.

func (EnquireLink) Header

func (pdu EnquireLink) Header() *Header

Header implements the PDU interface.

func (EnquireLink) Len

func (pdu EnquireLink) Len() int

Len implements the PDU interface.

func (EnquireLink) SerializeTo

func (pdu EnquireLink) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (EnquireLink) TLVFields

func (pdu EnquireLink) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type EnquireLinkResp

type EnquireLinkResp struct {
	// contains filtered or unexported fields
}

EnquireLinkResp PDU.

func (EnquireLinkResp) FieldList

func (pdu EnquireLinkResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (EnquireLinkResp) Fields

func (pdu EnquireLinkResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (EnquireLinkResp) Header

func (pdu EnquireLinkResp) Header() *Header

Header implements the PDU interface.

func (EnquireLinkResp) Len

func (pdu EnquireLinkResp) Len() int

Len implements the PDU interface.

func (EnquireLinkResp) SerializeTo

func (pdu EnquireLinkResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (EnquireLinkResp) TLVFields

func (pdu EnquireLinkResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type GenericNACK

type GenericNACK struct {
	// contains filtered or unexported fields
}

GenericNACK PDU.

func (GenericNACK) FieldList

func (pdu GenericNACK) FieldList() pdufield.List

FieldList implements the PDU interface.

func (GenericNACK) Fields

func (pdu GenericNACK) Fields() pdufield.Map

Fields implement the PDU interface.

func (GenericNACK) Header

func (pdu GenericNACK) Header() *Header

Header implements the PDU interface.

func (GenericNACK) Len

func (pdu GenericNACK) Len() int

Len implements the PDU interface.

func (GenericNACK) SerializeTo

func (pdu GenericNACK) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (GenericNACK) TLVFields

func (pdu GenericNACK) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type Header struct {
	Len    uint32
	ID     ID
	Status Status
	Seq    uint32 // Sequence number.
}

Header is a PDU header.

func DecodeHeader

func DecodeHeader(r io.Reader) (*Header, error)

DecodeHeader decodes binary PDU header data.

func (*Header) SerializeTo

func (h *Header) SerializeTo(w io.Writer) error

SerializeTo serializes the Header to its binary form to the given writer.

type ID

type ID uint32

ID of the PDU header.

const (
	GenericNACKID         ID = 0x80000000
	BindReceiverID        ID = 0x00000001
	BindReceiverRespID    ID = 0x80000001
	BindTransmitterID     ID = 0x00000002
	BindTransmitterRespID ID = 0x80000002
	QuerySMID             ID = 0x00000003
	QuerySMRespID         ID = 0x80000003
	SubmitSMID            ID = 0x00000004
	SubmitSMRespID        ID = 0x80000004
	DeliverSMID           ID = 0x00000005
	DeliverSMRespID       ID = 0x80000005
	UnbindID              ID = 0x00000006
	UnbindRespID          ID = 0x80000006
	ReplaceSMID           ID = 0x00000007
	ReplaceSMRespID       ID = 0x80000007
	CancelSMID            ID = 0x00000008
	CancelSMRespID        ID = 0x80000008
	BindTransceiverID     ID = 0x00000009
	BindTransceiverRespID ID = 0x80000009
	OutbindID             ID = 0x0000000B
	EnquireLinkID         ID = 0x00000015
	EnquireLinkRespID     ID = 0x80000015
	SubmitMultiID         ID = 0x00000021
	SubmitMultiRespID     ID = 0x80000021
	AlertNotificationID   ID = 0x00000102
	DataSMID              ID = 0x00000103
	DataSMRespID          ID = 0x80000103
)

PDU Types.

func (ID) String

func (id ID) String() string

String returns the PDU type as a string.

type Outbind added in v0.0.5

type Outbind struct {
	// contains filtered or unexported fields
}

Outbind PDU.

func (Outbind) FieldList added in v0.0.5

func (pdu Outbind) FieldList() pdufield.List

FieldList implements the PDU interface.

func (Outbind) Fields added in v0.0.5

func (pdu Outbind) Fields() pdufield.Map

Fields implement the PDU interface.

func (Outbind) Header added in v0.0.5

func (pdu Outbind) Header() *Header

Header implements the PDU interface.

func (Outbind) Len added in v0.0.5

func (pdu Outbind) Len() int

Len implements the PDU interface.

func (Outbind) SerializeTo added in v0.0.5

func (pdu Outbind) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (Outbind) TLVFields added in v0.0.5

func (pdu Outbind) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type QuerySM

type QuerySM struct {
	// contains filtered or unexported fields
}

QuerySM PDU.

func (QuerySM) FieldList

func (pdu QuerySM) FieldList() pdufield.List

FieldList implements the PDU interface.

func (QuerySM) Fields

func (pdu QuerySM) Fields() pdufield.Map

Fields implement the PDU interface.

func (QuerySM) Header

func (pdu QuerySM) Header() *Header

Header implements the PDU interface.

func (QuerySM) Len

func (pdu QuerySM) Len() int

Len implements the PDU interface.

func (QuerySM) SerializeTo

func (pdu QuerySM) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (QuerySM) TLVFields

func (pdu QuerySM) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type QuerySMResp

type QuerySMResp struct {
	// contains filtered or unexported fields
}

QuerySMResp PDU.

func (QuerySMResp) FieldList

func (pdu QuerySMResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (QuerySMResp) Fields

func (pdu QuerySMResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (QuerySMResp) Header

func (pdu QuerySMResp) Header() *Header

Header implements the PDU interface.

func (QuerySMResp) Len

func (pdu QuerySMResp) Len() int

Len implements the PDU interface.

func (QuerySMResp) SerializeTo

func (pdu QuerySMResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (QuerySMResp) TLVFields

func (pdu QuerySMResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type ReplaceSM added in v0.0.5

type ReplaceSM struct {
	// contains filtered or unexported fields
}

ReplaceSM PDU.

func (ReplaceSM) FieldList added in v0.0.5

func (pdu ReplaceSM) FieldList() pdufield.List

FieldList implements the PDU interface.

func (ReplaceSM) Fields added in v0.0.5

func (pdu ReplaceSM) Fields() pdufield.Map

Fields implement the PDU interface.

func (ReplaceSM) Header added in v0.0.5

func (pdu ReplaceSM) Header() *Header

Header implements the PDU interface.

func (ReplaceSM) Len added in v0.0.5

func (pdu ReplaceSM) Len() int

Len implements the PDU interface.

func (ReplaceSM) SerializeTo added in v0.0.5

func (pdu ReplaceSM) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (ReplaceSM) TLVFields added in v0.0.5

func (pdu ReplaceSM) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type ReplaceSMResp added in v0.0.5

type ReplaceSMResp struct {
	// contains filtered or unexported fields
}

ReplaceSMResp PDU.

func (ReplaceSMResp) FieldList added in v0.0.5

func (pdu ReplaceSMResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (ReplaceSMResp) Fields added in v0.0.5

func (pdu ReplaceSMResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (ReplaceSMResp) Header added in v0.0.5

func (pdu ReplaceSMResp) Header() *Header

Header implements the PDU interface.

func (ReplaceSMResp) Len added in v0.0.5

func (pdu ReplaceSMResp) Len() int

Len implements the PDU interface.

func (ReplaceSMResp) SerializeTo added in v0.0.5

func (pdu ReplaceSMResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (ReplaceSMResp) TLVFields added in v0.0.5

func (pdu ReplaceSMResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type Status

type Status uint32

Status is a property of the PDU header.

const (
	ESME_ROK              Status = 0x00000000 // No Error
	ESME_RINVMSGLEN       Status = 0x00000001 // Message Length is invalid
	ESME_RINVCMDLEN       Status = 0x00000002 // Command Length is invalid
	ESME_RINVCMDID        Status = 0x00000003 // Invalid Command ID
	ESME_RINVBNDSTS       Status = 0x00000004 // Incorrect BIND Status for given command
	ESME_RALYBND          Status = 0x00000005 // ESME Already in Bound State
	ESME_RINVPRTFLG       Status = 0x00000006 // Invalid Priority Flag
	ESME_RINVREGDLVFLG    Status = 0x00000007 // Invalid Registered Delivery Flag
	ESME_RSYSERR          Status = 0x00000008 // System Error
	ESME_RINVSRCADR       Status = 0x0000000A // Invalid Source Address
	ESME_RINVDSTADR       Status = 0x0000000B // Invalid Dest Addr
	ESME_RINVMSGID        Status = 0x0000000C // Message ID is invalid
	ESME_RBINDFAIL        Status = 0x0000000D // Bind Failed
	ESME_RINVPASWD        Status = 0x0000000E // Invalid Password
	ESME_RINVSYSID        Status = 0x0000000F // Invalid System ID
	ESME_RCANCELFAIL      Status = 0x00000011 // Cancel SM Failed
	ESME_RREPLACEFAIL     Status = 0x00000013 // Replace SM Failed
	ESME_RMSGQFUL         Status = 0x00000014 // Message Queue Full
	ESME_RINVSERTYP       Status = 0x00000015 // Invalid Service Type
	ESME_RINVNUMDESTS     Status = 0x00000033 // Invalid number of destinations
	ESME_RINVDLNAME       Status = 0x00000034 // Invalid Distribution List name
	ESME_RINVDESTFLAG     Status = 0x00000040 // Destination flag (submit_multi)
	ESME_RINVSUBREP       Status = 0x00000042 // Invalid ‘submit with replace’ request (i.e. submit_sm with replace_if_present_flag set)
	ESME_RINVESMSUBMIT    Status = 0x00000043 // Invalid esm_SUBMIT field data
	ESME_RCNTSUBDL        Status = 0x00000044 // Cannot Submit to Distribution List
	ESME_RSUBMITFAIL      Status = 0x00000045 // submit_sm or submit_multi failed
	ESME_RINVSRCTON       Status = 0x00000048 // Invalid Source address TON
	ESME_RINVSRCNPI       Status = 0x00000049 // Invalid Source address NPI
	ESME_RINVDSTTON       Status = 0x00000050 // Invalid Destination address TON
	ESME_RINVDSTNPI       Status = 0x00000051 // Invalid Destination address NPI
	ESME_RINVSYSTYP       Status = 0x00000053 // Invalid system_type field
	ESME_RINVREPFLAG      Status = 0x00000054 // Invalid replace_if_present flag
	ESME_RINVNUMMSGS      Status = 0x00000055 // Invalid number of messages
	ESME_RTHROTTLED       Status = 0x00000058 // Throttling error (ESME has exceeded allowed message limits)
	ESME_RINVSCHED        Status = 0x00000061 // Invalid Scheduled Delivery Time
	ESME_RINVEXPIRY       Status = 0x00000062 // Invalid message (Expiry time)
	ESME_RINVDFTMSGID     Status = 0x00000063 // Predefined Message Invalid or Not Found
	ESME_RX_T_APPN        Status = 0x00000064 // ESME Receiver Temporary App Error Code
	ESME_RX_P_APPN        Status = 0x00000065 // ESME Receiver Permanent App Error Code
	ESME_RX_R_APPN        Status = 0x00000066 // ESME Receiver Reject Message Error Code
	ESME_RQUERYFAIL       Status = 0x00000067 // query_sm request failed
	ESME_RINVOPTPARSTREAM Status = 0x000000C0 // Error in the optional part of the PDU Body.
	ESME_ROPTPARNOTALLWD  Status = 0x000000C1 // Optional Parameter not allowed
	ESME_RINVPARLEN       Status = 0x000000C2 // Invalid Parameter Length.
	ESME_RMISSINGOPTPARAM Status = 0x000000C3 // Expected Optional Parameter missing
	ESME_RINVOPTPARAMVAL  Status = 0x000000C4 // Invalid Optional Parameter Value
	ESME_RDELIVERYFAILURE Status = 0x000000FE // Delivery Failure (data_sm_resp)
	ESME_RUNKNOWNERR      Status = 0x000000FF // Unknown Error
)

func (Status) Error

func (s Status) Error() string

Error implements the Error interface.

type SubmitMulti

type SubmitMulti struct {
	// contains filtered or unexported fields
}

SubmitMulti PDU.

func (SubmitMulti) FieldList

func (pdu SubmitMulti) FieldList() pdufield.List

FieldList implements the PDU interface.

func (SubmitMulti) Fields

func (pdu SubmitMulti) Fields() pdufield.Map

Fields implement the PDU interface.

func (SubmitMulti) Header

func (pdu SubmitMulti) Header() *Header

Header implements the PDU interface.

func (SubmitMulti) Len

func (pdu SubmitMulti) Len() int

Len implements the PDU interface.

func (SubmitMulti) SerializeTo

func (pdu SubmitMulti) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (SubmitMulti) TLVFields

func (pdu SubmitMulti) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type SubmitMultiResp

type SubmitMultiResp struct {
	// contains filtered or unexported fields
}

SubmitMultiResp PDU.

func (SubmitMultiResp) FieldList

func (pdu SubmitMultiResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (SubmitMultiResp) Fields

func (pdu SubmitMultiResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (SubmitMultiResp) Header

func (pdu SubmitMultiResp) Header() *Header

Header implements the PDU interface.

func (SubmitMultiResp) Len

func (pdu SubmitMultiResp) Len() int

Len implements the PDU interface.

func (SubmitMultiResp) SerializeTo

func (pdu SubmitMultiResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (SubmitMultiResp) TLVFields

func (pdu SubmitMultiResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type SubmitSM

type SubmitSM struct {
	// contains filtered or unexported fields
}

SubmitSM PDU.

func (SubmitSM) FieldList

func (pdu SubmitSM) FieldList() pdufield.List

FieldList implements the PDU interface.

func (SubmitSM) Fields

func (pdu SubmitSM) Fields() pdufield.Map

Fields implement the PDU interface.

func (SubmitSM) Header

func (pdu SubmitSM) Header() *Header

Header implements the PDU interface.

func (SubmitSM) Len

func (pdu SubmitSM) Len() int

Len implements the PDU interface.

func (SubmitSM) SerializeTo

func (pdu SubmitSM) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (SubmitSM) TLVFields

func (pdu SubmitSM) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type SubmitSMResp

type SubmitSMResp struct {
	// contains filtered or unexported fields
}

SubmitSMResp PDU.

func (SubmitSMResp) FieldList

func (pdu SubmitSMResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (SubmitSMResp) Fields

func (pdu SubmitSMResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (SubmitSMResp) Header

func (pdu SubmitSMResp) Header() *Header

Header implements the PDU interface.

func (SubmitSMResp) Len

func (pdu SubmitSMResp) Len() int

Len implements the PDU interface.

func (SubmitSMResp) SerializeTo

func (pdu SubmitSMResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (SubmitSMResp) TLVFields

func (pdu SubmitSMResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type Unbind

type Unbind struct {
	// contains filtered or unexported fields
}

Unbind PDU.

func (Unbind) FieldList

func (pdu Unbind) FieldList() pdufield.List

FieldList implements the PDU interface.

func (Unbind) Fields

func (pdu Unbind) Fields() pdufield.Map

Fields implement the PDU interface.

func (Unbind) Header

func (pdu Unbind) Header() *Header

Header implements the PDU interface.

func (Unbind) Len

func (pdu Unbind) Len() int

Len implements the PDU interface.

func (Unbind) SerializeTo

func (pdu Unbind) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (Unbind) TLVFields

func (pdu Unbind) TLVFields() pdutlv.Map

Fields implement the PDU interface.

type UnbindResp

type UnbindResp struct {
	// contains filtered or unexported fields
}

UnbindResp PDU.

func (UnbindResp) FieldList

func (pdu UnbindResp) FieldList() pdufield.List

FieldList implements the PDU interface.

func (UnbindResp) Fields

func (pdu UnbindResp) Fields() pdufield.Map

Fields implement the PDU interface.

func (UnbindResp) Header

func (pdu UnbindResp) Header() *Header

Header implements the PDU interface.

func (UnbindResp) Len

func (pdu UnbindResp) Len() int

Len implements the PDU interface.

func (UnbindResp) SerializeTo

func (pdu UnbindResp) SerializeTo(w io.Writer) error

SerializeTo implements the PDU interface.

func (UnbindResp) TLVFields

func (pdu UnbindResp) TLVFields() pdutlv.Map

Fields implement the PDU interface.

Directories

Path Synopsis
Package pdufield provides PDU field codecs and utilities.
Package pdufield provides PDU field codecs and utilities.
Package pdutext provides text conversion for PDU fields.
Package pdutext provides text conversion for PDU fields.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL