[Pharo-project] Socket listenOn: 0 & accept

Philippe Marschall philippe.marschall at netcetera.ch
Fri Mar 9 10:56:16 EST 2012


On 03/09/2012 04:44 PM, Sven Van Caekenberghe wrote:
> Most socket API's allow for the creation of a server socket on the next available port, often by specifying 0 instead of a port. When the socket is bound, one can retrieve the local port and let the client(s) know. I tried to do that in Pharo today, and these steps seem to work, by accepting an incoming connection gives a primitive failed.

Stupid n00b question, isn't 0 a valid port number?

Cheers
Philippe






More information about the Pharo-dev mailing list