Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 96400 invoked from network); 19 Jan 2006 14:41:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jan 2006 14:41:42 -0000 Received: (qmail 47477 invoked by uid 500); 19 Jan 2006 14:41:36 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 47416 invoked by uid 500); 19 Jan 2006 14:41:35 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 47405 invoked by uid 99); 19 Jan 2006 14:41:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 06:41:35 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.74.244.71 is neither permitted nor denied by domain of geir@pobox.com) Received: from [64.74.244.71] (HELO chi.mobile-health-diary.com) (64.74.244.71) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 19 Jan 2006 06:41:34 -0800 Received: (qmail 4337 invoked from network); 19 Jan 2006 14:41:13 -0000 Received: from ool-43560634.dyn.optonline.net (HELO ?192.168.1.100?) (geir@67.86.6.52) by b014.internal.mobile-health-diary.com with SMTP; 19 Jan 2006 14:41:13 -0000 Message-ID: <43CFA507.7050109@pobox.com> Date: Thu, 19 Jan 2006 09:41:11 -0500 From: Geir Magnusson Jr Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [jira] Commented: (HARMONY-27) The network related channels in java.nio.channels are not implemented References: <854930986.1137667843111.JavaMail.jira@ajax.apache.org> In-Reply-To: <854930986.1137667843111.JavaMail.jira@ajax.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Paulex Yang (JIRA) wrote: > [ http://issues.apache.org/jira/browse/HARMONY-27?page=comments#action_12363230 ] > > Paulex Yang commented on HARMONY-27: > ------------------------------------ > > my proposed solution: > > 1. Refactor the java.net > > Currently, the Harmony's socket structur is as below(red means API classes, others are package private). I will attach the diagram to Jira. > "red"? I assume that you did this in HTML? Please, no HTML - it's hard for people to read who don't use HTML-enabled mail readers.... I for example, can't see it... geir > I proposed to refactor to three packages like this: > > java.net: for sure includes All API classes, and includes them only > public class Socket > public class ServerSocket > public abstract class SocketImpl > public class DatagramSocket > public class MulticastSocket extends DatagramSocket > public abstract class DatagramSocketImpl > > org.apache.harmony.net: all implementation classes with a factory > public class SocketImplProvider > class PlainSocketImpl extends SocketImpl > class PlainSocketImpl2 extends PlainSocketImpl > class PlainServerSocketImpl extends PlainSocketImpl > class PlainDatagramSocketImpl extends DatagramSocketImpl > class PlainMulticastSocketImpl extends PlainDatagramSocketImpl > some relevant small classes(Socks4Message, GenericIPMreq) > > org.apache.platform: currently, this package includes native file system and memory management interface, so it is a good place to include the native network interface, the INetworkSystem will encapsulate all JNI interfaces. > public interface INetworkSystem > public class OSNetworkSystem implements INetworkSystem > > 2. Implement java.nio > Now it is ready to implement NIO network channels based on it: > java.nio: > public abstract class SocketChannel > public abstract class ServerSocketChannel > public abstract class DatagramSocketChannel > class SocketChannelImpl > class ServerSocketImpl > class DatagramSocketChannelImpl > class SocketAdapter > class ServerSocketAdapter > class DatagramSocketAdapter > > I will attach the result diagram into JIRA, too > > 3. Modulize them > According to the current Harmony modulization, propose to modify the modulization as follows: > luni exports: java.net, org.apache.harmony.net, org.apache.harmony.platform(move from nio to luni, and export it) > nio exports: java.nio > > > > >> The network related channels in java.nio.channels are not implemented >> --------------------------------------------------------------------- >> >> Key: HARMONY-27 >> URL: http://issues.apache.org/jira/browse/HARMONY-27 >> Project: Harmony >> Type: Bug >> Components: Classlib >> Reporter: Paulex Yang >> Assignee: Geir Magnusson Jr > >> The following classes defined by Java Spec 5.0 in java.nio.channels are not included in the class library code >> public abstarct class java.nio.channels.DatagramChannel >> public abstract class java.nio.channels.ServerSocketChannel >> public abstract class java.nio.channels.SocketChannel >