I suggest making the socket as pluggable as possible, because I suspect we will see SSL sooner rather than later. Call it a hunch. Another thing that I would like to see is #readStream and #writeStream to lazily initialize appropriate streams on sockets. Dolphin has had that for a long time, and it works very nicely.
Bill -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Keith Hodges Sent: Monday, March 02, 2009 9:17 PM To: [email protected]; The general-purpose Squeak developers list Subject: Re: [Pharo-project] A point a.k.a excuse to you > build server to innovate Rio for everyone rather than just for the image > I am using (trouble was I was using 3 different images), all I needed > was an inclusive attitude rather than an exclusive attitude. > Dear All, I was trying to implement FileHttpExecutive in Rio today, I wanted to perform a GET, and have Rio informed of the File size as soon as the headers have been downloaded. As an alternative it would also be nice to be able to send a HEAD request prior to getting the whole file. I also want to read the stream as it is coming in, since Rio already can buffer ftp reads direct to a file, or other destination. About 5 minutes looking at the code showed me that this was pretty impossible. There was no clean way to subclass HTTPSocket and have it hold a handle on my file instance and report that information to me, since most of the business is performed on the class side (why do people do that?) My only option is probably to subclass HTTPSocket, inserting some Notifications in there, and use exception handlers to collect the data. So... would anyone out there be willing to rewrite HTTPSocket/Client from scratch so that it is well designed and so on from the ground up? Assuming that Socket will remain common between Squeak/Pharo etc, it could also provide an abstraction onto the Curl plugin as well. This new module would of course be for the benefit of all. Has anyone done/is anyone doing this already? thanks in advance Keith _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
