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
Solved

Winsock connect timeout in CSocket

Posted on 1997-02-18
2
1,477 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
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 217
substring method in java 1 129
Making an alias 7 101
Way to decrease size of apk file 9 86
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: 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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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