File: dcc_timeout

package info (click to toggle)
epic4 1%3A3.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,780 kB
  • sloc: ansic: 56,285; makefile: 630; sh: 161; perl: 30
file content (25 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@ dcc.inbound.threshhold = 0
@ dcc.outbound.threshhold = 0

on #-timer -333 * 
{
	^stack push on dcc_list

	^on dcc_list * #
	if (dcc.inbound.threshold) {
		^on -dcc_list "* * * Offered *" {
			if (time() - [$4] > dcc.inbound.threshhold) 
				{ dcc close $0 $2 }
		}
	}
	if (dcc.outbound.threshold) {
		^on -dcc_list "* * * Waiting *" {
			if (time() - [$4] > dcc.outbound.threshhold) 
				{ dcc close $0 $2 }
		}
	}
	^//dcc list

	^stack pop on dcc_list
}
#hop'98