Re: [tcljava-dev] Socket stuff - good time to improve?
Brought to you by:
mdejong
From: Shawn B. <sh...@qc...> - 2002-02-13 18:41:44
|
Neil Madden wrote: >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 > Agreed. You have to maintain compatibility with Java 1.1/1.2/1.3. > >thing for the new APIs). Is anyone thinking of using the new APIs for >file IO? > >Thoughts? > >>Cheers, >> >>Neil. >> -- -Shawn Boyce QCOM, Inc. Quality Software is Our Business http://www.qcominc.com |