Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Chris Vandomelen
> > Looks good. But it doesn't matter if someone passes no sets into select(): > > if there are no sets, it essentially becomes a usleep(). > > Yes I know, I had another patch which took care of this. But > Daniels latest commit took care of everything, looks very good > now :) I saw the patch :)

Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Markus Fischer
On Wed, Jul 25, 2001 at 06:37:25PM -0700, Chris Vandomelen wrote : > > At 20:15 24.07.2001 +0200, Markus Fischer wrote: > > >I've come up with a patch based on the ideas and suggestion that > > >came up in this thread: > > > > > >- Let the fd_set resource keep track of the highest socket; nuked >

Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Chris Vandomelen
> At 20:15 24.07.2001 +0200, Markus Fischer wrote: > >I've come up with a patch based on the ideas and suggestion that > >came up in this thread: > > > >- Let the fd_set resource keep track of the highest socket; nuked > > _select() first parameter and determine it ourself > >- Swapped _set(), _

Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Markus Fischer
On Thu, Jul 26, 2001 at 12:12:43AM +0200, Daniel Beulshausen wrote : > At 23:25 25.07.2001 +0200, Markus Fischer wrote: > >It works fine! > > > >I had another patch (which is obsolete now) which a) let the user > >pass 0 (or NULL) for all fd set resources to socket_select() > >(which is perfectly

Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Daniel Beulshausen
At 23:25 25.07.2001 +0200, Markus Fischer wrote: >It works fine! > >I had another patch (which is obsolete now) which a) let the user >pass 0 (or NULL) for all fd set resources to socket_select() >(which is perfectly valid because that way you can wait a i don't think this is needed, it would beh

Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Markus Fischer
On Wed, Jul 25, 2001 at 07:20:57PM +0200, Daniel Beulshausen wrote : > At 20:15 24.07.2001 +0200, Markus Fischer wrote: > >I've come up with a patch based on the ideas and suggestion that > >came up in this thread: > > > >- Let the fd_set resource keep track of the highest socket; nuked > > _se

Re: [PHP-DEV] cvs socket extension

2001-07-25 Thread Daniel Beulshausen
At 20:15 24.07.2001 +0200, Markus Fischer wrote: >I've come up with a patch based on the ideas and suggestion that >came up in this thread: > >- Let the fd_set resource keep track of the highest socket; nuked > _select() first parameter and determine it ourself >- Swapped _set(), _clear() and _i

Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Markus Fischer
On Tue, Jul 24, 2001 at 08:34:44AM -0700, Chris Vandomelen wrote : > > > The new version (renamed, cleaned up) is fairly new, so it should be fine > > > to do that. > > > > While we're at it, wouldn't it be more intuitiv to modify the > > socket_fd_*() calls to accept the fd_set resource as first

Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Chris Vandomelen
> > The new version (renamed, cleaned up) is fairly new, so it should be fine > > to do that. > > While we're at it, wouldn't it be more intuitiv to modify the > socket_fd_*() calls to accept the fd_set resource as first > parameter and the fd to add or remove as second parameter ? > No problem w

Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Markus Fischer
On Tue, Jul 24, 2001 at 05:48:33AM -0700, Chris Vandomelen wrote : > > On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote: > > > Great :-) > > > > > > So we're seeing this getting implemented soon ? > > > > > > Volunteers, anyone ? :-)) > > > > Is this select stuff so brand new that i

Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Chris Vandomelen
> On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote: > > Great :-) > > > > So we're seeing this getting implemented soon ? > > > > Volunteers, anyone ? :-)) > > Is this select stuff so brand new that it's okay to change the API? > If it is, we should do it quickly before too many peop

Re: [PHP-DEV] cvs socket extension

2001-07-24 Thread Stig Venaas
On Tue, Jul 24, 2001 at 05:16:05AM +0200, Markus Fischer wrote: > Great :-) > > So we're seeing this getting implemented soon ? > > Volunteers, anyone ? :-)) Is this select stuff so brand new that it's okay to change the API? If it is, we should do it quickly before too many people get to play

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
On Mon, Jul 23, 2001 at 07:50:22PM -0700, Chris Vandomelen wrote : > > On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote: > > > On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : > > > Chris mentioned something that its not needed to restore the last > > > highest value fo

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen
On Mon, 23 Jul 2001, Jason Greene wrote: > Just for curiosity, did you considered implementing poll instead of select? You >would not have to worry about specifying > max_fd - 1. > > -Jason > I had considered poll. But it's a bit more of a hassle, and it's not avaliable everywhere (AFAIK). Chri

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen
> On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote: > > On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : > > Chris mentioned something that its not needed to restore the last > > highest value for the max_fd if you drop the current highest one. > > I agree, it would only

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : > On Mon, Jul 23, 2001 at 05:16:13PM +0200, Markus Fischer wrote: > > On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : > > > > Since socket_select() always wants highest +1, couldn't this be > > > > implemented into

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Stig Venaas
On Mon, Jul 23, 2001 at 05:16:13PM +0200, Markus Fischer wrote: > On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : > > > Since socket_select() always wants highest +1, couldn't this be > > > implemented into socket_select() to go through all socket sets > > > and get the number

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Stig Venaas
On Mon, Jul 23, 2001 at 11:57:44PM +0200, Markus Fischer wrote: > On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : > Chris mentioned something that its not needed to restore the last > highest value for the max_fd if you drop the current highest one. I agree, it would only be for ef

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
On Mon, Jul 23, 2001 at 11:15:49PM +0200, Stig Venaas wrote : > On Mon, Jul 23, 2001 at 05:16:13PM +0200, Markus Fischer wrote: > > On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : > > > > Since socket_select() always wants highest +1, couldn't this be > > > > implemented into

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Jason Greene
Cc: "Daniel Beulshausen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 9:20 AM Subject: Re: [PHP-DEV] cvs socket extension > > > > > > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0); > > > > > > we can add a s

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen
> On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : > > > > > > > > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0); > > > > > > > > we can add a support function which return's the php_socket->socket integer. > > > > > > Glad someone came up with this. > > > > > > Since socket_

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : > > > > > > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0); > > > > > > we can add a support function which return's the php_socket->socket integer. > > > > Glad someone came up with this. > > > > Since socket_select() always w

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen
> > > > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0); > > > > we can add a support function which return's the php_socket->socket integer. > > Glad someone came up with this. > > Since socket_select() always wants highest +1, couldn't this be > implemented into socket_select() to go through a

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
On Mon, Jul 23, 2001 at 07:20:34AM -0700, Chris Vandomelen wrote : > > > > > > > >socket_select(0x7fff, $fd_set, 0, 0, 0, 0); > > > > > > we can add a support function which return's the php_socket->socket integer. > > > > Glad someone came up with this. > > > > Since socket_select() always w

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
On Mon, Jul 23, 2001 at 03:10:12PM +0200, Daniel Beulshausen wrote : > At 05:14 23.07.2001 -0700, Chris Vandomelen wrote: > > > Morning ... > > > > > > Has anyone a working example on using the new socket_select() > > > call with non-blocking connection-oriented sockets? blocking > > > sockets wi

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Daniel Beulshausen
At 05:14 23.07.2001 -0700, Chris Vandomelen wrote: > > Morning ... > > > > Has anyone a working example on using the new socket_select() > > call with non-blocking connection-oriented sockets? blocking > > sockets with socket_accept() work like a charm. But I can't get > > socket_select() to work.

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Markus Fischer
Thanks for the quick response! Exactly that was what I thought. I've used system select() before and I knew what I needed for the first parameter but heck I got no idea from which var/fucntion to retrieve this value. thanks ! - Markus On Mon, Jul 23, 2001 at 05:14:29AM -0700, Chris Vandomelen

Re: [PHP-DEV] cvs socket extension

2001-07-23 Thread Chris Vandomelen
> Morning ... > > Has anyone a working example on using the new socket_select() > call with non-blocking connection-oriented sockets? blocking > sockets with socket_accept() work like a charm. But I can't get > socket_select() to work. That's because of the patches that were made. Try specifying