# HG changeset patch # User Claus Gittinger # Date 1557319305 -7200 # Node ID 9f424bed67c4ba0c4af7c421aeb42aa2538addbd # Parent 148b29bdda0521322aeab6c7464202be1684ccb4 #DOCUMENTATION by cg class: Socket comment/format in: #bindAnonymously #bindTo:reuseAddress: diff -r 148b29bdda05 -r 9f424bed67c4 Socket.st --- a/Socket.st Mon May 06 18:51:41 2019 +0200 +++ b/Socket.st Wed May 08 14:41:45 2019 +0200 @@ -1765,7 +1765,7 @@ bindAnonymously "bind to any address. A free port will be allocated. - Our own socket address will be determined after conection set up. + Our own socket address will be determined after connection set up. This is the default after the socket has been created" ^ self bindTo:nil reuseAddress:false @@ -1774,6 +1774,8 @@ self newTCP bindAnonymously; listenFor:1; yourself self newTCP bindAnonymously; port " + + "Modified (comment): / 08-05-2019 / 14:40:11 / Claus Gittinger" ! bindAnonymouslyToAddress:aSocketAddress @@ -1885,7 +1887,7 @@ ]. socketAddress := aSocketAddress. socketAddress isNil ifTrue:[ - "ok, get a all zero socket address, so it is for anyHost + "ok, get an all zero socket address, so it is for anyHost and the port will be assigned" socketAddress := self socketAddressClass new. ]. @@ -2025,6 +2027,7 @@ " "Modified: / 19-01-2018 / 13:37:21 / stefan" + "Modified (format): / 08-05-2019 / 14:41:18 / Claus Gittinger" ! listenFor:aNumber