MOO-cows Mailing List Archive

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

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



> > 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)

Or, on a LambdaCore-descended MOO, look at $network:is_open() and/or
$object_utils:connected(), which are the correct way to do this, if they 
exist.

-R
-------------------------------------------------------------------------------
     Alex Stewart - riche@crl.com - Richelieu @ Diversity University MOO
                         http://www.crl.com/~riche/
            "Difficult answers lead to intelligent questions."



References:

Home | Subject Index | Thread Index