LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2003, 11:39 AM   #1
ruchika
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
Exclamation Will select fail if connection couldn't be established?


Hi,

My client program starts the script that establishes PPP connection in background and continues forward with its own processing. At some point, it calls connect on a non-blocking socket, and also selects the socket for completion of connection before writing. How will my program know if connection could not be established? Does select fail or does it still indicate writablilty if connection fails? Can a timeout be specified on connect?

In some cases, the client program may want to know the reason why the connection could not be established. For eg, if the modem is not connected, if there is no carrier etc. Is there a standard way to catch such errors without blocking the calling process? One workaround is to establish connection in a separate thread. Any other suggestions?

Thanks,
Ruchika
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disconnect An Established Connection metallica1973 Linux - Security 11 08-31-2005 09:15 PM
Any idea of why select() may fail? grupoapunte Programming 4 06-04-2005 11:02 AM
Time out in Connection established state if no Data flows on that connection asurya Linux - Networking 2 04-10-2005 03:54 PM
How to reset established connection? G-Fox Linux - Networking 4 10-02-2003 02:53 PM
problems with established connection nbc Linux - Newbie 1 08-16-2001 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration