Re: [tcljava-dev] Socket stuff - good time to improve?
Brought to you by:
mdejong
From: Neil M. <ne...@cs...> - 2002-02-13 17:50:19
|
Neil Madden wrote: > > Hi all, > > OK - my exams are over, and I have some time to look again at my socket > code in Jacl. It needs some work. After the messages a while ago about > common functionality in the Channel class, is now a good time for me to > review the socket code and try and finish it off? i.e. - is the Channel > class in a finished state? Also, what is the model for integrating with > fconfigure, fileevent etc? Has work begun on fileevent? I've looked at the new async I/O in Java 1.4, and I think it will be much more useful than the current synchronous Java I/O (reminds me quite a lot of a long-winded way of doing what Jacl does for I/O anyway). However, the calls and classes involved are completely different (for both async and synchronous I/O). So, how should I go about this? I think I'm going to try and implement asynchronous I/O just using the current stuff and Threads for the time being, and then I can think about 1.4. I think the best way to get 1.4 IO would be to use conditional execution to decide which SocketChannel implementation to load, as it would probably have to go into a separate class (it's a rewrite of the entire thing for the new APIs). Is anyone thinking of using the new APIs for file IO? Thoughts? > > Cheers, > > Neil. > -- package require Tkhtml;package require http;pack [scrollbar .vsb \ -orient vertical -command {.html yview}] -side right -fill y;pack \ [html .html -bg white -yscrollcommand {.vsb set}] -fill both -expand 1 set t [http::geturl http://mini.net/tcl/976.html];.html parse \ [http::data $t];http::cleanup $t |