Re: [PHP] UDP

2005-02-23 Thread Richard Lynch
Jesper Goos wrote: > I have for the last two days scanned the net for help on implementing a > simple UDP server in PHP. I wan't to use it to wait for input, verify > some userdata and then return som data. > > Can anyone help me or piont me in the right direction? Check in the 'streams' section o

[PHP] UDP

2005-02-23 Thread Jesper Goos
Hi I have for the last two days scanned the net for help on implementing a simple UDP server in PHP. I wan't to use it to wait for input, verify some userdata and then return som data. Can anyone help me or piont me in the right direction? Thanx Jesper -- PHP General Mailing List (http://www.php

Re: [PHP] UDP socket_read() problem

2002-09-21 Thread Martin
> Try using SO_TCP. The problem is that I'm making a server application, and all the clients were made by someone else and are much more difficult to modify, and are already using UDP. > There are issues using TO_UDP with > internet/LANs. many ppl mention > them from time to time, however,

[PHP] UDP socket_read() problem

2002-09-21 Thread Martin
Hello, I created an UDP socket using $sock=socket_create(AF_INET,SOCK_DGRAM,SOL_UDP) successfully and then used socket_bind($sock,$address,$port), up to there, no problems, but when I try to $buff=socket_read($sock,3) it just stays there doing nothing forever. What could be the problem? What

[PHP] UDP Sockets (networking)

2001-11-24 Thread Blaster
Hi, I have a problem with UDP sockets in PHP. What I want to do is the following, i send a UDP message to a server, and a reply should come instantly back. Now, the length of the message returned to me is unknown. It can be anywhere from 1 to 8192 (or more) bytes. However, some strange problem

[PHP] UDP Port listening, can it be done?

2001-08-02 Thread William Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, 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 connec