Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Socket Timeouts

Posted on 2000-02-15
2
Medium Priority
?
350 Views
Last Modified: 2013-11-20
How do I customize the timeout values for connection, receiving and sending using MFC's CSocket class ?. Can any one help me with a sample code?.
0
Comment
Question by:Sanjeev070898
2 Comments
 
LVL 1

Accepted Solution

by:
ScottyDawg earned 150 total points
ID: 2526373
As the socket call is blocking, you will need to set up a timer which will notify you if the operation has taken to long.

MSDN have a good article on this see Article ID: Q138692
0
 

Author Comment

by:Sanjeev070898
ID: 2526396
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question