Solved

Winsock connect timeout in CSocket

Posted on 1997-02-18
2
1,426 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
2 Comments
 
LVL 4

Accepted Solution

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

0
 

Author Comment

by:bobd
Comment Utility
Edited text of question
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 98
Host to IP 7 73
either24  challenge 19 83
sumHeights  challenge 17 59
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now