+ function rd_tout_get()
+ {
+ return ($this->rd_tout);
+ }
+
+ function rd_tout_set($tm)
+ {
+ $this->rd_tout = $tm;
+ }
+
+ function rd_tout_is_expired($tm)
+ {
+ // printf("rd_tout %d tm %d\n", $this->rd_tout, $tm);
+ return ($this->rd_tout < $tm);
+ }
+
+ function rd_endtime_is_expired($tm)
+ {
+ // printf("rd_endtime %d tm %d\n", $this->rd_tout, $tm);
+ return ($this->rd_endtime < $tm);
+ }
+
+ function rd_tout_reset($tm)
+ {
+ $this->rd_tout = $tm + RD_STREAM_TIMEOUT;
+ }
+