socket: Add methods to access the hostname and port
(Merged from Pharo)
This commit is contained in:
parent
4ce74bd5eb
commit
9278fb997c
|
@ -38,6 +38,16 @@ supervising the RX/TX process and re-starting.'>
|
|||
port := aPort
|
||||
]
|
||||
|
||||
hostname [
|
||||
<category: 'accessing'>
|
||||
^hostname
|
||||
]
|
||||
|
||||
port [
|
||||
<category: 'accessing'>
|
||||
^port
|
||||
]
|
||||
|
||||
connect [
|
||||
<category: 'connect'>
|
||||
socket ifNotNil: [socket close].
|
||||
|
|
Reference in New Issue