MOO-cows Mailing List Archive

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

Re: Connection Redirection?



"M. Childs" <amusing@u.washington.edu>

>	I'm interested in having a way to transfer what player-object a 
>connection is attached to.  This function would redirect where the 
>incoming text is handled, and call confunc on the new object.  Security 
>concerns aside, does anyone have suggestions on how to make this, so 
>player A can suddenly become player B, without logging out and back in?  
>>From fiddling in database I've come to believe this could only be done by 
>writing a new function to compile into the server?
>	Help and suggestions would be appreciated,
>

I've been interested in this too.

I tried a hack where you use read() and then receive_line()
to redirect the terminal input to the other player.

Unfortunately, if you are trying to swap two players, then the
read of one eats the receive_line() of the other!  And of course,
receive_line doesn't work if the target player is not logged in.

Hadn't thought of calling confunc, actually -- this was more of an
evil prank to pull on players... (consentually, I'd think.)

Now, if I had this #0:do_command that I am rather wondering where
to find documentation for... perhaps that would do it...

    /t

Tom Ritchford     tom@mvision.com, tom@weirdos.com

Verge's "Little Idiot" -- Music for the mentally peculiar.
1-800-WEIRDOS           http://www.fly.net/~tom/verge.html


References:

Home | Subject Index | Thread Index