ealmiladi Posted August 9, 2007 Share Posted August 9, 2007 Okay, I honestly have been sitting up for years trying to figure out this problem. Basically, I have a Flash AP and I'm sending packets to that ap, but for some odd reason, my packets are combining and not sending when I want to send them. When a user X's out of the ap in Flash, my PHP socket server picks it up and sends a message to all the other clients that have the Flash ap that this person Xed out, but it's not sending the message until an update from the Flash ap is sent to the server and when that happens, the packets get combined and nothing works. $buf="SEND_REMOVE|$read_sockets[$index]"; socket_write($client2, $buf, strlen ($buf)) or die("Could not write output\n"); now that's supposed to send the packet right there and then.. but it doesn't it will EVENTUALLY send the packet, but not until the location to where it's sending sends a packet to the server and then the server responds by sending 2 packets combined into 1.. it may sound confusing, but it's really messed up please let me know if anyone can help Quote Link to comment https://forums.phpfreaks.com/topic/64069-php-socket_write-combining/ Share on other sites More sharing options...
ealmiladi Posted August 9, 2007 Author Share Posted August 9, 2007 http://pastecode.org/73 Quote Link to comment https://forums.phpfreaks.com/topic/64069-php-socket_write-combining/#findComment-319743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.