[253] in Coldmud discussion meeting

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

Re: Connection()

daemon@ATHENA.MIT.EDU (Wed May 18 05:10:57 1994 )

To: coldstuff@MIT.EDU
Cc: colinm@extro.ucc.su.OZ.AU (Colin McCormack)
In-Reply-To: Your message of "Wed, 18 May 1994 01:35:03 PDT."
Date: Wed, 18 May 1994 05:06:44 -0400
From: Greg Hudson <ghudson@MIT.EDU>

Side note: the maximum value of a port is 2^16 - 1, or 65,535.
Although Coldmud may allow you to bind to a port above that, you're
actually binding to (unsigned)(n) % 65,536.

>> There is a primitive which makes use of connection information,
>> echo() or somesuch... are you suggesting that this is not needed,
>> or rather that the appropriate place for accessing current connection
>> is the server, and only there?

> Actually, the current functioning of echo(), in my opinion, is
> something to be changed, rather than emulated.  In my opinion,
> echo() should only work when this() is an object with a current
> connection bound to it, and should echo to all connections bound to
> the current object, thus preserving encapsulation and a consistent
> connection<->object interface.

This is how echo() operates, actually.

Coldmud's design was based very much upon that of existing mud
servers; if I write another server, it will depart from this model in
a number of ways.