aboutsummaryrefslogtreecommitdiffstats
path: root/SCCPHandler.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-28 23:40:54 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-29 20:34:22 +0100
commit84414380e59f39a03459bba918891d923cf9c0bf (patch)
treeca6c047187f9067e7134bd27aad3f5ee94654817 /SCCPHandler.st
parent9c5cf9dd648919aa04e17afea1616bb97c581e5a (diff)
SCCPHandler: Rename variable to conManager
Diffstat (limited to 'SCCPHandler.st')
-rw-r--r--SCCPHandler.st23
1 files changed, 12 insertions, 11 deletions
diff --git a/SCCPHandler.st b/SCCPHandler.st
index 37717dc..5a04235 100644
--- a/SCCPHandler.st
+++ b/SCCPHandler.st
@@ -1,7 +1,7 @@
PackageLoader fileInPackage: 'OsmoNetwork'.
Object subclass: SCCPConnection [
- | src dst queue handler confirmSem proc |
+ | src dst queue conManager confirmSem proc |
SCCPConnection class >> new [
^ super new
@@ -12,9 +12,14 @@ Object subclass: SCCPConnection [
confirmSem := Semaphore new.
]
- handler: aHandler [
+ conManager: aHandler [
<category: 'private'>
- handler := aHandler.
+ conManager := aHandler.
+ ]
+
+ readQueue [
+ <category: 'private'>
+ ^ queue ifNil: [ queue := SharedQueue new. ]
]
srcRef [
@@ -36,17 +41,13 @@ Object subclass: SCCPConnection [
^ dst
]
- readQueue [
- ^ queue ifNil: [ queue := SharedQueue new. ]
- ]
-
cleanUp [
"I get called at the end of a SCCP connection"
<category: 'connection-handling'>
('Cleaningup the SCCP connection: ', dst asString) printNl.
- handler := nil.
+ conManager := nil.
queue := nil.
proc := nil.
]
@@ -78,7 +79,7 @@ Object subclass: SCCPConnection [
((Delay forSeconds: 10) timedWaitOn: confirmSem)
ifTrue: [
- handler connectionTimeout: self.
+ conManager connectionTimeout: self.
^ false
].
@@ -112,7 +113,7 @@ Object subclass: SCCPConnection [
]
sendMsg: aMsg [
- handler sendMsg: aMsg.
+ conManager sendMsg: aMsg.
]
]
@@ -234,7 +235,7 @@ Object subclass: SCCPHandler [
con := SCCPConnection new.
con srcRef: self assignSrcRef.
- con handler: self.
+ con conManager: self.
res := Osmo.SCCPConnectionRequest
initWith: (con srcRef) dest: (Osmo.SCCPAddress createWith: 254) data: aData.
self connections add: con.