Solved

Winsock connect timeout in CSocket

Posted on 1997-02-18
2
1,517 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 100 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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 this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

691 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