On Wed, 03 May 2000, Scott G. Miller wrote:
<snip> 
> > /**
> > * Creates a new RawMessage of a given type that uses this protocol
> > * @param s    The name of the message type
> > * @param ci   An object containing information about the connection
> > **/
> > public RawMessage newMessage(String s, ConnectionInfo ci);
> Why the String argument.  Could we not just pass a Class?

It is not supposed to create Message, but rather a RawMessage. This RawMessage
is the intermediate state that holds the info of the message as a number of
strings. This would be called by Message.toRawMessage() rather then using the
RawMessage(String messagetype) constructor it uses today.

The class isn't actually known until the MessageFactory is called with the
RawMessage as an argument. Maybe one could skip this intermediate step and get
rid of the RawMessage class all together, I dunno. 

> 
> 
>  Scott
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE5EIP1pXyM95IyRhURAvSRAJ43vcwoX2Q0JoN8a+xSrmFM0BG/FQCgsDl2
> FkOhfBIMbYkQQVujF5KW4Vs=
> =bc3q
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> Freenet-dev mailing list
> Freenet-dev at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
-- 

Oskar Sandberg

md98-osa at nada.kth.se

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to