Thread: WINSOCK2 - Timing Out

  1. #1
    Registered User
    Join Date
    Feb 2005

    WINSOCK2 - Timing Out

    Hello, is there a way to avoid hanging at a call to recv()? If nothing happens after a certain time interval, I want to proceed to the next part of my program.

  2. #2
    Registered User
    Join Date
    Jan 2005
    You can use select() with your timeout value to determin if there is any data to be received or use none blocking sockets.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Performance Timing Function
    By rosicky2005 in forum C++ Programming
    Replies: 11
    Last Post: 05-31-2007, 03:09 PM
  2. My Timing System
    By jmd15 in forum Windows Programming
    Replies: 4
    Last Post: 01-01-2006, 11:43 PM
  3. Linker errors on Winsock2 functions
    By ShadowMetis in forum C++ Programming
    Replies: 2
    Last Post: 11-20-2004, 11:19 PM
  4. Games - timing
    By Magos in forum Game Programming
    Replies: 7
    Last Post: 03-06-2004, 11:32 AM
  5. Timing in Windows
    By steinberg in forum Windows Programming
    Replies: 3
    Last Post: 07-14-2002, 12:43 AM