class: Socket
authorClaus Gittinger <cg@exept.de>
Sat, 09 Feb 2013 01:21:56 +0100
changeset 2904 d2e1eead2bfb
parent 2903 80af520506e8
child 2905 73332f14d929
class: Socket changed: #waitForConnectionUntil:
Socket.st
--- a/Socket.st	Sat Feb 09 01:21:12 2013 +0100
+++ b/Socket.st	Sat Feb 09 01:21:56 2013 +0100
@@ -1620,8 +1620,11 @@
     ^ self
 !
 
-waitForConnectionUntil:aMillisecondClockValue
-    self readWaitWithTimeoutMs: aMillisecondClockValue.
+waitForConnectionUntil:aTimestamp
+    "return true if connected"
+
+    self readWaitWithTimeoutMs: (aTimestamp millisecondDeltaFrom:Timestamp now).
+    ^ self isConnected
 !
 
 waitForData
@@ -4056,10 +4059,10 @@
 !Socket class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.276 2013-02-08 20:35:50 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.277 2013-02-09 00:21:56 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.276 2013-02-08 20:35:50 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.277 2013-02-09 00:21:56 cg Exp $'
 ! !