Subject: onc() and idle_seconds()

From: [email-masked]
Date: Mon, 27 Sep 1993 21:07:41 -0700

I was wondering, what EXACTLY it is that resets a player's idle_seconds()?
I'm doing a little MOO networking experimentation of my own. I have two
network players, connected back to back in the traditional fashion, and to
monitor the connection status, I start an extra while loop, parallel to
the read loop, that says, "If I've been idle more than two minutes, send
command x (basically a call to a do_nothing verb) over the net."  Both 
network players are equipped with this loop, and the initiating player
has an additional "If I've been idle more than ten minutes, boot me and
start trying to reestablish the connection." 

I had thought it was activity on the connection line that reset 
idle_seconds(), but I'm providing activity, and the players still wind
up idle... I think my general methodology may be flawed, though, because
the connection also doesn't shut down when they reach ten minutes idle
time.

Anyone have any suggestions?
====Rob (CF/Gelfin)

---

From: Pavel Curtis <[email-masked]>
Date: Tue, 28 Sep 1993 14:53:31 -0700

> I was wondering, what EXACTLY it is that resets a player's idle_seconds()?

The idle_seconds() function returns the difference between the current time and
the last time at which the server read some data from the specified connection.

	Pavel