Confused: socket listening

Michael Rueger michael at squeakland.org
Wed May 19 10:32:12 UTC 2004


Hi all,

shouldn't this

| s1 s2 |
[s1 := Socket newTCP listenOn: 1234.
s2 := Socket newTCP listenOn: 1234]
	on: Error
	do: [
		s1 ifNotNil: [s1 closeAndDestroy].
		s2 ifNotNil: [s2 closeAndDestroy]].
{s1. s2. }.



fail? I get two Sockets listening on the same port?
Even Windows shows them with netstat:

   TCP    Ophir:1046             Ophir:0                Listen
   TCP    Ophir:1056             Ophir:0                Listen
   TCP    Ophir:1234             Ophir:0                Listen
   TCP    Ophir:1234             Ophir:0                Listen
   TCP    Ophir:5000             Ophir:0                Listen



Confused...

Michael





More information about the Squeak-dev mailing list