This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Unix domain sockets.
- From: Michael Koch <konqueror at gmx dot de>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 29 Jan 2004 21:23:03 +0100
- Subject: Re: RFC: Unix domain sockets.
- References: <4019696B.4030603@avtrex.com>
On Thu, Jan 29, 2004 at 12:13:31PM -0800, David Daney wrote:
> Has anyone thought about how to integrate support for unix domain
> sockets into libgcj?
>
> As far as I can tell they are not currently supported, but correct me if
> I am wrong.
>
> These are my current thoughts:
>
> Create a new SocketAddress class for unix domain sockets (perhaps
> gnu.java.net.UnixDomainSocketAddress).
>
> To use them you would create either a Socket or ServerSocket with the
> default constructor.
>
> Then bind() and/or connect() passing UnixDomainSocketAddress instead of
> InetSocketAddress.
>
> The implementation would require some hacking in gnu.java.net.* but the
> public interfaces (things in java.net) would not change.
>
> What do you all think?
Well, this needs some more hacking in java.net as it depends on
SocketAddress objects being an InetSocketAddress object. SUN does the
same, I tested that at some point in past. To make unix sockets working
in java.net you have revisit most of the code and I dont know its
possible at all for some things.
Michael