On 09/27/2010 02:38 PM, Paolo Bonzini wrote:

>> is there anything I can do to find out that the remote has closed the
>> connection? On POSIX I would sooner or later get a -1 on read.
> 
> "Later", after the first read has returned a zero, I think. :)  GST
> should behave the same way.

hmm. socket next is retuning nil but isOpen/isPeerAlive is still returning true.


in two different shells I do

1.) b := TCP.ServerSocket port: 6000 bindTo: TCP.IPAddress anyLocalAddress.
1.) b waitForConnection.
2.) s := TCP.Socket remote: TCP.IPAddress anyLocalAddress port: 6000.
1.) b accept.
1.) b close.
2.) s next. -> nil
2.) s isOpen -> true.


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to