I am confused how this method is supposed to work. It has a boolean parameter that is documented to be used to distinguish between datagram and stream sockets. However, it is only used by Socket and ServerSocket, so I guess it must always be a stream socket? But it gets worse. The PlainSocketImpl.create() calls socketCreate() with that parameter, where it is documented to be used to distinguish between server and client socket (is there a difference??). Looking into the native code for that thought, this method calls JVM_Socket() with that parameter to distinguish between datagram and stream sockets. Something does not fit here... Is this parameter used at all?
Cheers, /Roman -- Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org aicas Allerton Interworks Computer Automated Systems GmbH Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany http://www.aicas.com * Tel: +49-721-663 968-0 USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe Geschäftsführer: Dr. James J. Hunt