Socket waitForConnectionUntil: is what?

Mark A. Schwenk mas at wellthot.com
Fri Oct 3 20:50:52 UTC 2003


Markus Fritsche wrote:
> Julian Fitzell wrote:
> 
>> Sounds like the pg client hasn't been updated for 3.6 yet.  The Socket 
>> protocol changed... I think it uses #waitForConnectionFor: now... (or 
>> have I got that backwards... no I think that's right) 
> 
> 
> I tried the trivial thing - change waitForConnectionUntil: to 
> waitForConnectionFor:, resulting in a "mustBeBoolean"-error at 
> PGConnection>>#openSocket (newSocket waitForConnectionFor: is highlighted).
> 
> Hm, mustBeBoolean is an interesting error, because I have no clue, where 
> it comes from seeing this debugger window. Could anyone give a short 
> summary about "mustBeBoolean"?
> 
> Regards, Markus
> 

 From a quick look at this, it appears that the old method 
OldSocket>>waitForConnectionUntil: (which is still available if you use 
the deprecated class OldSocket instead of Socket) takes a Time argument 
whereas the new method Socket>>waitForConnectionFor: takes a Number 
interpreted as the number of milliseconds.

-Mark



More information about the Squeak-dev mailing list