Re: bind() function always reporting Invalid argument.
| From: | Richard Lynch | Date: | Fri, 03 Aug 2001 21:54:35 +0000 |
| Subject: | Re: bind() function always reporting Invalid argument. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61190@lists.php.net to get a copy of this message | ||
Naive Question:
Your BIND server is running on port 10000?...
Is that for sure? I would have expected a port number < 1024.
I believe the protocal (3rd arg) argument to socket() should be 'udp' or
'tcp' rather than the documented int type and value of 0 you used... At
least, there's a user-contributed not to that effect...
http://php.net/socket
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: William Bailey <wb@pro-net.co.uk>
Newsgroups: php.general
To: PHP General List <php-general@lists.php.net>
Sent: Friday, August 03, 2001 4:40 AM
Subject: bind() function always reporting Invalid argument.
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I can't seem to get the bind() socket function to work. Every time
> i try to bind a socket i get 'Invalid argument'.
>
> I know that the manual says that this module is EXPERIMENTAL and
> that ANYTHING can change WITHOUT NOTICE. But hopefully somebody will know
> what i have to do to get it to work :-)
>
> I have attached the code that i'm currently using so that you can
> see what is going on.
>
> Thanks,
> William.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 5.0i for non-commercial use
> Charset: noconv
>
> iQA/AwUBO2pxra39EoU2VrU1EQKTnwCfQo63BKgPaup4aEphTrwgsY/0+/MAoMfC
> N/QVSnNYzLoIDMRcDg2360gB
> =qTnU
> -----END PGP SIGNATURE-----
>
>