[PHP-DEV] ext/sockets: httpd waiting for TIME_WAIT

2002-04-30 Thread guido.d.berger
hello everyone, sorry for the long post, but i am stumped and i want to be as precise as possible. this is my setup: php 4.2.0 with the socket extension, as a dynamically loaded module in apache 1.3.23. it is running on is a red hat 7.0 box with kernel 2.2.19. this is was i am trying to do: i

Re: [PHP-DEV] ext/sockets socket_sendto() 5th param cannotbehostname

2002-02-15 Thread Richard Samar
Jason Greene wrote: > > Well the problem is that all 3 of them work differently, > and they should follow a consistent flow. One of them allows either, > another allows only ip, and another allows only host. > > That and the protos are all wrong. > > I will have to do some cleanup on that. o

Re: [PHP-DEV] ext/sockets socket_sendto() 5th param cannotbehostname

2002-02-15 Thread Jason Greene
Well the problem is that all 3 of them work differently, and they should follow a consistent flow. One of them allows either, another allows only ip, and another allows only host. That and the protos are all wrong. I will have to do some cleanup on that. -jason On Fri, 2002-02-15 at 18:24, Ric

Re: [PHP-DEV] ext/sockets socket_sendto() 5th param cannot behostname

2002-02-15 Thread Richard Samar
Jason Greene wrote: > > Wow thats inconsistent, I will have to fix that. > Give me a couple of days to get to it. :-) take your time. I have fixed my file here ;-) -moh -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] ext/sockets socket_sendto() 5th param cannot behostname

2002-02-15 Thread Jason Greene
Wow thats inconsistent, I will have to fix that. Give me a couple of days to get to it. Thanks, -Jason On Fri, 2002-02-15 at 17:18, Richard Samar wrote: > Hi, > > yeah ext/sockets again :-) > > The 5th param of socket_sendto() obviously cannot be a hostname > (string). socket_bind(), socket_

[PHP-DEV] ext/sockets socket_sendto() 5th param cannot be hostname

2002-02-15 Thread Richard Samar
Hi, yeah ext/sockets again :-) The 5th param of socket_sendto() obviously cannot be a hostname (string). socket_bind(), socket_connect() etc. allow this though. So I am not sure wether it is wanted or not. But I guess it is :-) For socket_sendto() though one would need to use gethostbyname ("m

Re: [PHP-DEV] ext/sockets socket_recvfrom() 6th Parameter problem

2002-02-15 Thread Jason Greene
I just commited the proper fix to CVS Thanks for the report! -jason On Fri, 2002-02-15 at 08:14, Richard Samar wrote: > Hi, > > I have a little problem with the behavior of socket_recvfrom(). > > Here the function entry: > PHP_FE(socket_recvfrom, second_fifth_and_sixth_args_force_ref) > >

[PHP-DEV] ext/sockets socket_recvfrom() 6th Parameter problem

2002-02-15 Thread Richard Samar
Hi, I have a little problem with the behavior of socket_recvfrom(). Here the function entry: PHP_FE(socket_recvfrom, second_fifth_and_sixth_args_force_ref) In case you have an AF_INET socket the 6th param should be set. Byref (see FE) a port is written into the 6th param: ZVAL_LONG(arg6,

[PHP-DEV] ext/sockets

2001-12-22 Thread Richard Samar
Markus Fischer wrote: > > No, but my point is the interface isn't going to be changed > tomorrow. Not even next week. Very true! Well, I was thinking about sockets documentation for while after the bigger changes came. I just talked with Jan about it and we will go for it, writing the