Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-16 Thread drush66
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

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-15 Thread Sven Van Caekenberghe
Can anyone please help me and show me where I should look if I wanted to see the exact C code implementing the socket primitives (for the Pharo built Cog VMs) ? On 09 Mar 2012, at 16:44, Sven Van Caekenberghe wrote: Most socket API's allow for the creation of a server socket on the next

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-15 Thread Eliot Miranda
On Tue, Mar 13, 2012 at 4:43 AM, Sven Van Caekenberghe s...@beta9.bewrote: Can anyone please help me and show me where I should look if I wanted to see the exact C code implementing the socket primitives (for the Pharo built Cog VMs) ? In trunk (and in my Cog vm source) they are in the

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-15 Thread Sven Van Caekenberghe
On 15 Mar 2012, at 18:58, Eliot Miranda wrote: In trunk (and in my Cog vm source) they are in the directories http://squeakvm.org/svn/squeak/trunk/platforms/{Cross,Mac OS,unix,win32}/plugins/SocketPlugin i.e. in all VMs locate the relevant platforms hierarchy and look in

[Pharo-project] Socket listenOn: 0 accept

2012-03-09 Thread Sven Van Caekenberghe
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

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-09 Thread Philippe Marschall
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

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-09 Thread Sven Van Caekenberghe
On 09 Mar 2012, at 16:56, Philippe Marschall wrote: 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

Re: [Pharo-project] Socket listenOn: 0 accept

2012-03-09 Thread Norbert Hartl
Am 09.03.2012 um 18:44 schrieb Sven Van Caekenberghe: On 09 Mar 2012, at 16:56, Philippe Marschall wrote: 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.