The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
socket communication and timer application tryit UNIX for Dummies Questions & Answers 0 06-06-2008 01:35 PM
segmentation fault in socket application amitpansuria Linux 8 04-18-2008 12:18 AM
socket communication but not writing madfox High Level Programming 2 12-04-2007 12:44 PM
Which application has a TCP socket open murphyboy UNIX for Dummies Questions & Answers 3 10-26-2005 02:29 AM
ftp application using socket programming toughguy2handle High Level Programming 1 09-23-2005 07:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-07-2008
Registered User
 

Join Date: Jul 2005
Posts: 2
Socket communication and timer application

tcp communication application
i have an application which run in

1)
while()
{in

}
and listens for some request
When a request comes to create a file(containing some data fetch from somewhere)
but i also want to start some timer that after 10/20 min delete that file
But i don't know how to create such timer

2)
Also
now i want to open listening socket (with some other application).this socket will continue listening for alarms send by that application and forward it to other application

but this should not be blocking as the alarm comes it should forward it . this should not be blocking because it will block the other portion of code until and unless it recieves alarm

I read about select . Can it be used in this scenario

It will be great if some body helps me out
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0