pdu

package
Version: v0.0.0-...-78670b8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindBody

type BindBody struct {
	Body
	SystemId         string
	Password         string
	SystemType       string
	InterfaceVersion uint32
	AddrTon          uint32
	AddrNpi          uint32
	AddressRange     string
}

type BindReceiver

type BindReceiver struct {
	Pdu
	Header *Header
	Body   *BindBody
	Tlv    *[]Tlv
}

func NewBindReceiver

func NewBindReceiver(sequence uint32, body *BindBody) *BindReceiver

NewBindReceiver creates new BIND_RECEIVER operation

type BindReceiverResp

type BindReceiverResp struct {
	Pdu
	Header *Header
	Body   *BindRespBody
	Tlv    []*Tlv
}

func NewBindReceiverResp

func NewBindReceiverResp(sequence uint32, status uint32, body *BindRespBody) *BindReceiverResp

NewBindReceiverResp creates new BIND_RECEIVER_RESP operation

type BindRespBody

type BindRespBody struct {
	Body
	SystemId string
}

type BindTransceiver

type BindTransceiver struct {
	Pdu
	Header *Header
	Body   *BindBody
	Tlv    *[]Tlv
}

func NewBindTransceiver

func NewBindTransceiver(sequence uint32, body *BindBody) *BindTransceiver

NewBindTransceiver creates new BIND_TRANSCEIVER operation

type BindTransceiverResp

type BindTransceiverResp struct {
	Pdu
	Header *Header
	Body   *BindRespBody
	Tlv    []*Tlv
}

func NewBindTransceiverResp

func NewBindTransceiverResp(sequence uint32, status uint32, body *BindRespBody) *BindTransceiverResp

NewBindTransceiverResp creates new BIND_TRANSCEIVER_RESP operation

type BindTransmitter

type BindTransmitter struct {
	Pdu
	Header *Header
	Body   *BindBody
	Tlv    *[]Tlv
}

func NewBindTransmitter

func NewBindTransmitter(sequence uint32, body *BindBody) *BindTransmitter

NewBindTransmitter creates new BIND_TRANSMITTER operation

type BindTransmitterResp

type BindTransmitterResp struct {
	Pdu
	Header *Header
	Body   *BindRespBody
	Tlv    []*Tlv
}

func NewBindTransmitterResp

func NewBindTransmitterResp(sequence uint32, status uint32, body *BindRespBody) *BindTransmitterResp

NewBindTransmitterResp creates new BIND_TRANSMITTER_RESP operation

type Body

type Body interface{}

type CancelSm

type CancelSm struct {
	Pdu
	Header *Header
	Body   *CancelSmBody
}

func NewCancelSm

func NewCancelSm(sequence uint32, body *CancelSmBody) *CancelSm

NewCancelSm creates new CANCEL_SM operation

type CancelSmBody

type CancelSmBody struct {
	Body
	ServiceType     string
	MessageId       string
	SourceAddrTon   uint32
	SourceAddrNpi   uint32
	SourceAddr      string
	DestAddrTon     uint32
	DestAddrNpi     uint32
	DestinationAddr string
}

type CancelSmResp

type CancelSmResp struct {
	Pdu
	Header *Header
}

func NewNewCancelSm

func NewNewCancelSm(sequence uint32, status uint32) *CancelSmResp

NewNewCancelSm creates new CANCEL_SM_RESP operation

type DataSm

type DataSm struct {
	Header *Header
	Body   *DataSmBody
	Tlv    *[]Tlv
}

func NewDataSm

func NewDataSm(sequence uint32, body *DataSmBody, tlv *[]Tlv) *DataSm

NewDataSm creates new DATA_SM operation

type DataSmBody

type DataSmBody struct {
	ServiceType        string
	SourceAddrTon      uint32
	SourceAddrNpi      uint32
	SourceAddr         string
	DestAddrTon        uint32
	DestAddrNpi        uint32
	DestinationAddr    string
	EsmClass           uint32
	RegisteredDelivery uint32
	DataCoding         uint32
}

type DataSmResp

type DataSmResp struct {
	Pdu
	Header *Header
	Body   *SmRespBody
	Tlv    *[]Tlv
}

func NewDataSmResp

func NewDataSmResp(sequence uint32, status uint32, body *SmRespBody, tlv *[]Tlv) *DataSmResp

NewDataSmResp creates new DATA_SM_RESP operation

type DeliverSm

type DeliverSm struct {
	Header *Header
	Body   *SmBody
	Tlv    *[]Tlv
}

func NewDeliverSm

func NewDeliverSm(sequence uint32, body *SmBody, tlv *[]Tlv) *DeliverSm

NewDeliverSm creates new DELIVER_SM operation

type DeliverSmResp

type DeliverSmResp struct {
	Pdu
	Header *Header
	Body   *SmRespBody
}

func NewDeliverSmResp

func NewDeliverSmResp(sequence uint32, status uint32, body *SmRespBody) *DeliverSmResp

NewDataSmResp creates new DELIVER_SM_RESP operation

type EnquireLink struct {
	Pdu
	Header *Header
}
func NewEnquireLink(sequence uint32) *EnquireLink

NewEnquireLink creates new ENQUIRE_LINK operation

type EnquireLinkResp

type EnquireLinkResp struct {
	Pdu
	Header *Header
}

func NewEnquireLinkResp

func NewEnquireLinkResp(sequence uint32) *EnquireLinkResp

NewEnquireLinkResp creates new ENQUIRE_LINK_RESP operation

type GenericNack

type GenericNack struct {
	Pdu
	Header *Header
}

func NewGenericNack

func NewGenericNack(sequence uint32, status uint32) *GenericNack

NewGenericNack creates new GENERIC_NACK operation

type Header struct {
	CommandLength  uint32
	CommandId      uint32
	CommandStatus  uint32
	SequenceNumber uint32
}

type OutBind

type OutBind struct {
	Pdu
	Header *Header
	Body   *OutBindBody
}

func NewOutBind

func NewOutBind(sequence uint32, body *OutBindBody) *OutBind

NewOutBind creates new OUTBIND operation

type OutBindBody

type OutBindBody struct {
	SystemId string
	Password string
}

type Pdu

type Pdu interface{}

type QuerySm

type QuerySm struct {
	Pdu
	Header *Header
	Body   *QuerySmBody
}

func NewQuerySm

func NewQuerySm(sequence uint32, body *QuerySmBody) *QuerySm

NewQuerySm creates new QUERY_SM operation

type QuerySmBody

type QuerySmBody struct {
	MessageId     string
	SourceAddrTon uint32
	SourceAddrNpi uint32
	SourceAddr    string
}

type QuerySmResp

type QuerySmResp struct {
	Pdu
	Header *Header
	Body   *QuerySmRespBody
}

func NewQuerySmResp

func NewQuerySmResp(sequence uint32, status uint32, body *QuerySmRespBody) *QuerySmResp

NewQuerySmResp creates new QUERY_SM_RESP operation

type QuerySmRespBody

type QuerySmRespBody struct {
	MessageId    string
	FinalDate    string
	MessageState uint32
	ErrorCode    uint32
}

type ReplaceSm

type ReplaceSm struct {
	Pdu
	Header *Header
	Body   *SmBody
	Tlv    *[]Tlv
}

func NewReplaceSm

func NewReplaceSm(sequence uint32, body *SmBody) *ReplaceSm

NewReplaceSm creates new REPLACE_SM operation

type ReplaceSmResp

type ReplaceSmResp struct {
	Pdu
	Header *Header
}

func NewReplaceSmResp

func NewReplaceSmResp(sequence uint32, status uint32) *ReplaceSmResp

NewReplaceSmResp creates new REPLACE_SM_RESP operation

type SmBody

type SmBody struct {
	ServiceType          string
	SourceAddrTon        uint32
	SourceAddrNpi        uint32
	SourceAddr           string
	DestAddrTon          uint32
	DestAddrNpi          uint32
	DestinationAddr      string
	EsmClass             uint32
	ProtocolId           uint32
	PriorityFlag         uint32
	ScheduleDeliveryTime string
	ValidityPeriod       string
	RegisteredDelivery   uint32
	ReplaceIfPresentFlag uint32
	DataCoding           uint32
	SmDefaultMsgId       uint32
	SmLength             uint32
	ShortMessage         string
}

type SmRespBody

type SmRespBody struct {
	MessageId string
}

type SubmitSm

type SubmitSm struct {
	Header *Header
	Body   *SmBody
	Tlv    *[]Tlv
}

func NewSubmitSm

func NewSubmitSm(sequence uint32, body *SmBody, tlv *[]Tlv) *SubmitSm

NewSubmitSm creates new SUBMIT_SM operation

type SubmitSmResp

type SubmitSmResp struct {
	Header *Header
	Body   *SmRespBody
}

func NewSubmitSmResp

func NewSubmitSmResp(sequence uint32, status uint32, body *SmRespBody) *SubmitSmResp

NewSubmitSmResp creates new SUBMIT_SM_RESP operation

type Tlv

type Tlv struct {
	Tag    uint
	Length uint
	Value  string
}

type Unbind

type Unbind struct {
	Pdu
	Header *Header
}

func NewUnbind

func NewUnbind(sequence uint32) *Unbind

NewSubmitSmResp creates new UNBIND operation

type UnbindResp

type UnbindResp struct {
	Pdu
	Header *Header
}

func NewUnbindResp

func NewUnbindResp(sequence uint32, status uint32) *UnbindResp

NewUnbindResp creates new UNBIND_RESP operation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL