Documentation ¶
Index ¶
- type GlobalTitle
- type PartyAddress
- func (p *PartyAddress) GTI() int
- func (p *PartyAddress) GTString() string
- func (p *PartyAddress) HasPC() bool
- func (p *PartyAddress) HasSSN() bool
- func (p *PartyAddress) IsOddDigits() bool
- func (p *PartyAddress) MarshalBinary() ([]byte, error)
- func (p *PartyAddress) MarshalLen() int
- func (p *PartyAddress) MarshalTo(b []byte) error
- func (p *PartyAddress) RouteOnGT() bool
- func (p *PartyAddress) SetLength()
- func (p *PartyAddress) UnmarshalBinary(b []byte) error
- type ProtocolClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalTitle ¶
type GlobalTitle struct { TranslationType uint8 NumberingPlan int // 1/2 Octet EncodingScheme int // 1/2 Octet NatureOfAddressIndicator uint8 GlobalTitleInfo []byte }
GlobalTitle is a GlobalTitle inside the Called/Calling Party Address.
type PartyAddress ¶
type PartyAddress struct { Length uint8 Indicator uint8 SignalingPointCode uint16 SubsystemNumber uint8 GlobalTitle }
PartyAddress is a SCCP parameter that represents a Called/Calling Party Address.
func NewPartyAddress ¶
func NewPartyAddress(gti, spc, ssn, tt, np, es, nai int, gt []byte) *PartyAddress
NewPartyAddress creates a new PartyAddress including GlobalTitle.
func ParsePartyAddress ¶
func ParsePartyAddress(b []byte) (*PartyAddress, error)
ParsePartyAddress decodes given byte sequence as a SCCP common header.
func (*PartyAddress) GTI ¶
func (p *PartyAddress) GTI() int
GTI returns GlobalTitleIndicator value retrieved from Indicator.
func (*PartyAddress) GTString ¶
func (p *PartyAddress) GTString() string
GTString returns the GlobalTitleInfo in human readable string.
func (*PartyAddress) HasPC ¶
func (p *PartyAddress) HasPC() bool
HasPC reports whether PartyAddress has a Signaling Point Code.
func (*PartyAddress) HasSSN ¶
func (p *PartyAddress) HasSSN() bool
HasSSN reports whether PartyAddress has a Subsystem Number.
func (*PartyAddress) IsOddDigits ¶
func (p *PartyAddress) IsOddDigits() bool
IsOddDigits reports whether GlobalTitleInfo is odd number or not.
func (*PartyAddress) MarshalBinary ¶
func (p *PartyAddress) MarshalBinary() ([]byte, error)
MarshalBinary returns the byte sequence generated from a PartyAddress instance.
func (*PartyAddress) MarshalLen ¶
func (p *PartyAddress) MarshalLen() int
MarshalLen returns the serial length.
func (*PartyAddress) MarshalTo ¶
func (p *PartyAddress) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*PartyAddress) RouteOnGT ¶
func (p *PartyAddress) RouteOnGT() bool
RouteOnGT reports whether the packet is routed on Global Title or not.
func (*PartyAddress) SetLength ¶
func (p *PartyAddress) SetLength()
SetLength sets the length in Length field.
func (*PartyAddress) UnmarshalBinary ¶
func (p *PartyAddress) UnmarshalBinary(b []byte) error
UnmarshalBinary sets the values retrieved from byte sequence in a SCCP common header.
type ProtocolClass ¶
type ProtocolClass uint8
ProtocolClass is a Protocol Class SCCP parameter.
func NewProtocolClass ¶
func NewProtocolClass(cls int, opts bool) ProtocolClass
NewProtocolClass creates a new ProtocolClass.
func (ProtocolClass) Class ¶
func (p ProtocolClass) Class() int
Class returns the class part from ProtocolClass parameter.
func (ProtocolClass) ReturnOnError ¶
func (p ProtocolClass) ReturnOnError() bool
ReturnOnError judges if ProtocolClass has "Return Message On Error" option.