?
Solved

Winsock connect timeout in CSocket

Posted on 1997-02-18
2
Medium Priority
?
1,552 Views
Last Modified: 2013-11-20
I am using MFC and the CSocket class in the program I am currently working on.  When the program starts, it causes a non-connected client to invoke RAS for a connection.  This length of this process is variable and sometimes results in
a timeout.  Do you know of a way to read and set the value of this timeout setting?

The SetSockOpt in the CAsyncSocket: class does not support the SO_SNDTIMEO command.  Besides, can a CAsyncSocket call used when I am planning to use CSocket class based connections?
0
Comment
Question by:bobd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
mbhakta earned 300 total points
ID: 1300301
Try the CAsyncSocket::SetSockOpt() call. This has parameters related to change of time-outs.

0
 

Author Comment

by:bobd
ID: 1300302
Edited text of question
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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…
Suggested Courses

649 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