home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,487 of 14,669   
   Jorgen Grahn to Singh   
   Re: detecting connection close on a host   
   21 Apr 10 05:43:04   
   
   8d757918   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 2010-04-20, Singh wrote:   
   > Hi,   
   > I am developing a daemon which will monitor an agent running on a   
   > linux system. A client from some other host connects to the agent and   
   > performs some work, once the client disconnects i need to stop that   
   > agent.   
      
   It would be much, much better if the agent could stop itself. Or be   
   implemented as an inetd service, so it happens automatically[1].   
      
   The way the design looks now ...   
      
   > for that i need to get the information in the daemon when the   
   > client's connection close to the agent so that i can proceed to stop   
   > the agent from the daemon running.   
      
   ... it's not really a networking question in the normal sense. It's   
   a Linux process monitoring question.   
      
   /Jorgen   
      
   [1] I guess inetd services still need to implement their own timeouts   
       though.  I'm not 100% sure about that, and too lazy to RTFM.   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca