1
0
Fork 0

socket: Add methods to access the hostname and port

(Merged from Pharo)
This commit is contained in:
Holger Hans Peter Freyther 2013-06-17 15:23:54 +02:00
parent 4ce74bd5eb
commit 9278fb997c
1 changed files with 10 additions and 0 deletions

View File

@ -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].