How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
 
Help for Buyers
Articles for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
ASP Obfuscator
By GiantStep on Jan 15
Max Bid: Open to fair suggestions


Game for kids to learn math
By powerbuilder on Jan 15
Max Bid: Open to fair suggestions


Need an active x which will allow our application ...
By powerbuilder on Jan 15
Max Bid: Open to fair suggestions


Search Engine Optimization
By km23 on Jan 15
Max Bid: $275


Web Site Design 2
By QUIET on Jan 15
Max Bid: Open to fair suggestions


DNS/Website problem
By QUIET on Jan 15
Max Bid: Open to fair suggestions


Click here to put this ticker on your own site

Open Work Categories.
Database 
(134 open)
   Access 
(49 open)
   MySQL 
(74 open)
   Oracle 
(6 open)
   SQL Server 
(46 open)
   Other DB 
(13 open)
Documentation / Tech Writing 
(18 open)
Game Development 
(22 open)
Graphics / Art / Music 
(43 open)
   Graphics 
(59 open)
     3d Animation 
(12 open)
   Art (Misc.) 
(20 open)
   Music 
(8 open)
   3d Modeling 
(12 open)
Language Specific 
(85 open)
   ASP 
(66 open)
   C# 
(35 open)
   C++ / C 
(97 open)
   Cold Fusion 
(5 open)
   Delphi 
(26 open)
   Java 
(50 open)
   Perl 
(30 open)
   PHP 
(82 open)
   XML/XSL 
(33 open)
   Visual Basic 
(155 open)
   Visual Basic .Net 
(62 open)
   Other 
(42 open)
Misc 
(33 open)
   CAD 
(7 open)
MultiMedia 
(22 open)
Network 
(29 open)
   Network Design 
(10 open)
   Network Implementation 
(8 open)
Platforms 
(57 open)
   Windows 
(125 open)
     MS Exchange 
(3 open)
     Other 
(6 open)
   Internet Browser 
(60 open)
   Linux 
(48 open)
   UNIX 
(20 open)
   Hand Held/PDA Programming 
(17 open)
Requirements 
(7 open)
Security 
(24 open)
Testing / Quality Assurance 
(11 open)
Web 
(129 open)
   Page Design 
(68 open)
   Flash 
(43 open)
   Web Services 
(58 open)
   Web (Other) 
(57 open)
Training 
(9 open)
   Computer Based 
(9 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

timeout on connect()
Bid Request Id: 29342
Bookmark in my 'To Do' list
Posted by: nidawi (1 ratings)
(Software buyer rating 10)
Posted: Sep 30, 2002
3:28:30 PM EDT
Bidding Closes: Oct 2, 2002
3:35:42 PM EDT
Viewed (by coders): 73 times
Deadline: 10/3/2002
TIME EXPIRED
Phase:
100% of work was accepted by buyer. Coder account has been credited.
Max Accepted Bid: Bidding is closed
Project Type: Question or Beginner / Newbie Assistance
Bidding Type: Open Auction
Categories: C++ / C
Enter chat room for this bid request
(0 active users at Jan 15, 2003 5:43:13 AM EDT)

Description:
I need to shorten the time a socket takes to timeout on a connect() request to about 10-20 seconds.

I am currently using connect() with a signal handler catching SIGALRM after 10 seconds to shorten the time it takes for connect to timeout. I was hoping to create some sort of easy solution to my program hanging when trying to connect to a slow domain, but of course, after the alarm, the program resumes right at that connect statement no matter what i put inside the if() statement. Is there any simple solution around the long timeout default in connect(), because I haven't found one yet?

I also looked into select() and setsockopt() but I am still at a loss on which method to use. I need this is purely C/C++ of course. :-)

alarm(10); // sets stuck to true
if(stuck || connect(s, (struct sockaddr *)&addy, sizeof(addy)) < 0)
{
stuck = false;
close(s);
return -1;
}
return s;

~jessie~

Deliverables:
1) An working example of the code that will accomplish a reasonable timeout (10-20 seconds) for a socket's connect() request.

2) Complete ownership and distribution copyrights to all work purchased.



Platform:
Linux


Must be 100% finished and received by buyer on:

Oct 3, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.


Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation, you can report it to: abuse@rentacoder.com.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  
This bid was accepted by the buyer!
Nedani
(49 ratings)
in Braila, Braila
Romania
 
$20 (USD) Sep 30, 2002
4:21:08 PM EDT
 9.82
(Excellent)
   
Hi.

I will send you an example program.

Regards,
Daniel
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Anuj Gakhar
Rated a 9.97 on 75 jobs 
Michael Sharp
Rated a 9.97 on 147 jobs 
Simon Price
Rated a 10 on 6 jobs 
RNA
Rated a 9.91 on 25 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 
teleCODERS
Rated a 9.93 on 59 jobs 
Securenext
Rated a 9.96 on 50 jobs 
Buddies
Rated a 9.8 on 46 jobs 
Codman
Rated a 9.96 on 95 jobs 
markesh
Rated a 10 on 16 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through it's parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright © 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.