On Wed, 2005-03-30 at 16:06 -0600, Scott Klement wrote:
> Hi Rich,
> 
> > To answer your question, I want to use the alarm() api in my
> > application, and indeed it does generate a signal when the alarm goes
> > off.
> 
> In response to your question, I decided to fiddle with the alarm() and 
> sigaction() APIs, and I've got them working.  I used this technique as an 
> easy way to make the connect() API time out for an article that will be 
> published in my newsletter tomorrow.
> 
> The source code for the article can be found at the following link, if you 
> want to look at it as a sample for how to use sigaction():
> http://www.iseriesnetwork.com/noderesources/code/clubtechcode/ChkSvr.zip
> 
> Good luck!
> 
Scott, you're a good man.  It's exactly the sort of thing I was wanting
to do, but hadn't gotten around to yet.

Thank you.
--
Regards,
Rich

Current Conditions in Des Moines, IA
Scattered Clouds
Temp 39.2F, Windchill 30.5F
Winds out of the North at 16mph



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.