smalltalk
/
osmo-st-gsm
Archived
1
0
Fork 0

sccp: Introduce a new state for the initial state

This commit is contained in:
Holger Hans Peter Freyther 2011-06-20 10:25:26 +02:00
parent 8f526dea2d
commit bd2acafc8e
1 changed files with 6 additions and 4 deletions

View File

@ -22,10 +22,11 @@ Object subclass: SCCPConnectionBase [
| src dst conManager confirmSem proc state |
SCCPConnectionBase class >> stateInitial [ <category: 'state'> ^ 0 ]
SCCPConnectionBase class >> stateConnected [ <category: 'state'> ^ 1 ]
SCCPConnectionBase class >> stateReleased [ <category: 'state'> ^ 2 ]
SCCPConnectionBase class >> stateReleaseComplete [ <category: 'state'> ^ 3 ]
SCCPConnectionBase class >> stateTimeout [ <category: 'state'> ^ 3 ]
SCCPConnectionBase class >> stateRequested [ <category: 'state'> ^ 1 ]
SCCPConnectionBase class >> stateConnected [ <category: 'state'> ^ 2 ]
SCCPConnectionBase class >> stateReleased [ <category: 'state'> ^ 3 ]
SCCPConnectionBase class >> stateReleaseComplete [ <category: 'state'> ^ 4 ]
SCCPConnectionBase class >> stateTimeout [ <category: 'state'> ^ 5 ]
SCCPConnectionBase class >> new [
<category: 'creation'>
@ -91,6 +92,7 @@ Object subclass: SCCPConnectionBase [
| res |
<category: 'handling'>
"Send the confirmation now"
state := self class stateRequested.
res := Osmo.SCCPConnectionRequest
initWith: (self srcRef) dest: (Osmo.SCCPAddress createWith: 254) data: aData.
self nextPut: res toMessage.