[776] in Coldmud discussion meeting

root meeting help first previous next next in chain last in chain last

Re: Stupid Question Time

daemon@ATHENA.MIT.EDU (Sun Aug 20 17:32:50 1995 )

Date: Sun, 20 Aug 1995 15:29:24 -0600
From: 869683 Gillespie Brandon James <brandon@avon.declab.usu.edu>
To: coldstuff@MIT.EDU

< Reassign_connection though,a ccording to the docs, will ONLY work if 
< called from sys.

If you are using later versions of ColdX, this is untrue, as system bindings
no longer exist (instead you dynamically bind functions to whichever object
you want, upon startup).

However, reassign_connection() will still work even through a thunk on 
$sys, because it uses a globally set value for the current connection, and
it changes that.  For instance, in the ColdWeb server $daemon binds the
port, and set's it's .connect() to:

method connect
    arg host, socket;
    var d;

    d = create([$sys.starting_parent()]);

I could probably speed it up a little by creating a new object after
reassigning the last one.  But, this is irreguardless, as the above
would work just as well with $sys.reassign_connection()...

(er, add (d) to that).