May 8, 2012
5:24 p.m.
Why doesn't the second listen fail? And is there a way to fail if a port is already in use? socket := Socket newTCP. socket listenOn: 8088. socket2 := Socket newTCP. socket2 listenOn: 8088. (socket isValid and: [ socket2 isValid ]) ifTrue: [ self error: 'how can I be listening twice on the same port?!' ]. socket destroy. socket2 destroy -- View this message in context: http://forum.world.st/Listening-on-sockets-tp4618129.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.