home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / ftpfid17.zip / HANGUP.TXT < prev    next >
Text File  |  1996-03-13  |  1KB  |  35 lines

  1. While I was in hangup.cmd making some changes suggested
  2. by Peter Davies, I added some other things and made some
  3. changes.
  4. It can now be used as a "watchdog" process for FTPFIDO
  5. w/o hanging up the PPP connection for those who are connected
  6. full time or prefer to hangup using something different.
  7.  
  8. It always looked for someone on a Bink/Vmodem system
  9. but now it can be toggled off.
  10.  
  11. Instead of killing ftpfido when there are 0 files
  12. in the "ftpin" after 10 min., (meaning it hung before recieving)
  13. I compare filecounts in case there are leftover files
  14. in the "ftpin".
  15.  
  16. The general mode of ops is Ftpfido starts it, it looks for
  17. ftpfido's flag.
  18. If there, it checks the # of files in "ftpin".
  19. It then sleeps for 5 min.
  20. It repeats the process 9 times.
  21. On the 2nd pass, it counts the files in "ftpin".
  22. If the count is the same as 10 min ago, either
  23. the session hung when sending or you are sending
  24. something that takes longer than 10 min.
  25. So it hangs up and kills ftpfido and it's flags.
  26. If it makes it to the 9th pass, (meaning the
  27. filecount is changing and ftpfido is still there)
  28. it checks the count against pass 1 (45min.) .
  29. If the count is equal, either the session hung
  30. recieving or you are recieving a  single file that
  31. takes longer than 45min.
  32. So it hangs up and kills ftpfido and it's flags.
  33. If the count is different, the whole process
  34. starts all over again.
  35.