Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    how to check for new packets

    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.

  • #2
    Banned
    Join Date
    Apr 2007
    Posts
    428
    Thanks
    29
    Thanked 5 Times in 5 Posts
    if (fgets) {
    mail(packethasarrived);
    }



  • #3
    New Coder
    Join Date
    Aug 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by matak View Post
    if (fgets) {
    mail(packethasarrived);
    }


    Thanks but in that way the specific packet disappears too, is there another way?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •