Thread: Winsock. How to check if all the data was sent...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    55

    Winsock. How to check if all the data was sent...

    How can I check if all the data has been already received after I use send? I mean, I want to know when the send buffer "empties"...

  2. #2
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434
    Me thinks this should be in the windows api forum Good luck though, im sure someone there can help you out
    "Anyone can aspire to greatness if they try hard enough."
    - Me

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    Look up TCP/IP protocol. It will by default insure that every package sent is delivered. If it can't be then it attempts to resend. Where as UDP doesn't resend packets which is commonly used in games. If you really wanted you could use things like checksum.
    Last edited by cerin; 06-04-2007 at 03:31 AM.
    My computer is awesome.

  4. #4
    Registered User
    Join Date
    Apr 2007
    Posts
    55
    I had forgotten I asked this, lol. I figured it out soon after I posted. There is a funcion called select() that does the job wonderfully.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-08-2007, 12:24 AM
  2. Binary Tree, couple questions
    By scoobasean in forum C Programming
    Replies: 3
    Last Post: 03-12-2005, 09:09 PM
  3. spell check in C using a dictionary file
    By goron350 in forum C Programming
    Replies: 10
    Last Post: 11-25-2004, 06:44 PM
  4. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  5. WSASend & WSARecv :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-16-2002, 05:51 PM