Re: UDP Port listening, can it be done?
| From: | Richard Lynch | Date: | Fri, 03 Aug 2001 02:48:08 +0000 |
| Subject: | Re: UDP Port listening, can it be done? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61068@lists.php.net to get a copy of this message | ||
> I'm currently just playing around with a few things and want to
> write a script that will listen on a UDP port and then log/process the
> information. The problem i have it that i don't know if php can do this. I
> know that you can connect to a UDP port but can you listen on one? And if
> you cant then does anybody know if this is planned in a future version?
Never done it, but have you read:
http://php.net/manual/en/ref.sockets.php
http://php.net/manual/en/function.socket.php
'Valid arguments for the protocol argument are "tcp" and "udp"'
http://php.net/manual/en/function.bind.php
http://php.net/manual/en/function.listen.php
--
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