MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: I'm full of questions today...



On Wed, 1 Nov 1995, James Renken wrote:

> What is the function to determine if a certain network connection is still 
> active?

In a !d verb, try any of theese:
typeof(connection_name(OBJ))!=ERR
typeof(idle_seconds(OBJ))!=ERR

And for players:
OBJ in connected_players()
connected_seconds(obj)       - There's a small bug in using this... if a 
player has been connected for less than a second, this will return 0, 
making it seem like the person isn't connected.  If they really aren't, 
it'll return E_INVARG (I think).

- Kipp




Follow-Ups: References:

Home | Subject Index | Thread Index