sccp: Introduce a new state for the initial state
This commit is contained in:
parent
8f526dea2d
commit
bd2acafc8e
|
@ -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.
|
||||
|
|
Reference in New Issue