Hi! I am trying to implement a TFTP client in PHP. TFTP is using UDP, which seems to be no problem as other examples that use UDP (for example to query DNS) work just finde.
Just there is a difference between TFTP and most other UDP based protocols that I have ever heared of: While most UDP protocols send their answer packes FROM the same port they received the query from TO the port on the client that the request came from originally, TFTP for whatevery reason I never found out replies FROM an arbritary source port > 1023 to the port on the client that it used to send the query. Now it seems to me that the replay packet being send back from the TFTP server to my request (that I can see using an Ethernet sniffer) is just not put into the read queue of my socket opened with fsockopen. The function fread never sees the return packet when I do TFTP. Is that behaviour by design or is this a bug? Did anyone ever have the same problem and maybe even found a workaround? Regards, Torsten Schlabach -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php