This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2010-11-17 15:57:09 +00:00
|
|
|
Object subclass: BSSAPHelper [
|
2010-11-19 08:02:26 +00:00
|
|
|
<category: 'osmo-message'>
|
|
|
|
<comment: 'BSSAP message routines'>
|
|
|
|
|
|
|
|
BSSAPHelper class >> msgManagemnt [ <category: 'spec'> ^ 0 ]
|
|
|
|
BSSAPHelper class >> msgDtap [ <category: 'spec'> ^ 1 ]
|
2010-11-17 15:57:09 +00:00
|
|
|
|
|
|
|
BSSAPHelper class >> prependManagement: aMsg [
|
2010-11-19 08:02:26 +00:00
|
|
|
<category: 'creation'>
|
2010-11-17 15:57:09 +00:00
|
|
|
"Prepent the BSSAP Management header"
|
|
|
|
| tmp |
|
|
|
|
|
|
|
|
tmp := OrderedCollection new.
|
|
|
|
tmp add: self msgManagemnt.
|
|
|
|
tmp add: aMsg size.
|
|
|
|
aMsg prependByteArray: tmp asByteArray.
|
|
|
|
]
|
|
|
|
|
|
|
|
BSSAPHelper class >> prependDTAP: aMsg dlci: sapi [
|
2010-11-19 08:02:26 +00:00
|
|
|
<category: 'creation'>
|
2010-11-17 15:57:09 +00:00
|
|
|
"Prepend the DTAP header"
|
|
|
|
| tmp |
|
|
|
|
tmp := OrderedCollection new.
|
|
|
|
tmp add: self msgDtap.
|
|
|
|
tmp add: sapi.
|
|
|
|
tmp add: aMsg size.
|
|
|
|
aMsg prependByteArray: tmp asByteArray.
|
|
|
|
]
|
|
|
|
]
|