Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.