This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: Unix domain sockets.


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?

David Daney.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]