View Full Version : how to check for new packets
koolaid
02-26-2008, 03:18 PM
How can I check a connection (fsockopen) for new packets? I know I can use fgets but that retrieves the packet too, I only want to check if a new packet has arrived.
Thanks.
matak
02-26-2008, 04:07 PM
if (fgets) {
mail(packethasarrived);
}
:)
koolaid
02-26-2008, 04:36 PM
if (fgets) {
mail(packethasarrived);
}
:)
Thanks but in that way the specific packet disappears too, is there another way?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.