[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] TCP Server Socket issue

From: Holger Hans Peter Freyther
Subject: [Help-smalltalk] TCP Server Socket issue
Date: Sun, 07 Nov 2010 21:55:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101027 Fedora/3.1.6-1.fc14 Lightning/1.0b2 Thunderbird/3.1.6


I am in a train and hope you excuse my laziness. I have selector like this

listen [
       | con |
        socket := Sockets.ServerSocket
                    port: port
                    bindTo: (Sockets.SocketAddress byName: addr).

        [true] whileTrue: [
            socket waitForConnection.
            con := socket accept.
            con close.

and this is silently on the GST shell when I CTRL+C and listen again. So the
old ServerSocket is still around when I create the new one. I would like to
either have an exception (e.g. when the bind(2) is failing) or it to magically
work (how would it)?

Is it worth to look into the underlying issue?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]