aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-06-17 15:23:54 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-06-17 15:23:54 +0200
commit9278fb997cbb763d6d507393ae535aa27062fb2b (patch)
tree92f17d1b017635e63e6229c3bc4923732d358d0c
parent4ce74bd5eba2b4a9125d350e1e2bab50298fd82c (diff)
socket: Add methods to access the hostname and port
(Merged from Pharo)
-rw-r--r--osmo/OsmoStreamSocketBase.st10
1 files changed, 10 insertions, 0 deletions
diff --git a/osmo/OsmoStreamSocketBase.st b/osmo/OsmoStreamSocketBase.st
index a6f7b2d..4bebab8 100644
--- a/osmo/OsmoStreamSocketBase.st
+++ b/osmo/OsmoStreamSocketBase.st
@@ -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].