C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 05-18-2005, 07:21 PM   #1
Registered User
 
Join Date: Feb 2005
Posts: 54
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.
maththeorylvr is offline   Reply With Quote
Old 05-18-2005, 09:18 PM   #2
Registered User
 
Join Date: Jan 2005
Posts: 847
You can use select() with your timeout value to determin if there is any data to be received or use none blocking sockets.
Quantum1024 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 05:49 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22