Jump to content

PHP socket_write combining?


ealmiladi

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/64069-php-socket_write-combining/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.