summaryrefslogtreecommitdiffstats
path: root/libjava/java/net
Commit message (Collapse)AuthorAgeFilesLines
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-262-113/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (impl): Made private. (bound): New private member variable. (DatagramSocket): Fixed documentation, use getImpl(). (getImpl): New package-private method. (isClosed): Use getImpl(). (getLocalAddress): Completed documentation, use getImpl(). (getLocalPort): Use getImpl(). (getSoTimeout): Likewise. (setSoTimeout): Likewise. (getSendBufferSize): Likewise. (setSendBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setReceiveBufferSize): Likewise. (connect): Likewise. (disconnect): Likewise. (receive): Likewise. (send): Likewise. (setReuseAddress): Likewise. (setTrafficClass): Likewise. (bind): Added message to exception. (isClosed): Completed documentation. (getChannel): Likewise. (connect): Added missing exception, refined exception message. (isBound): Completed documentation, just return bound. (isConnected): Completed documentation. (getRemoteSocketAddress): Likewise. (getReuseAddress): Completed documentation, use getImpl(). (setSoBroadcast): Likewise. (getSoBroadcast): Likewise. (getTrafficClass): Likewise. (getLocalSocketAddress): Simplified. * java/net/MulticastSocket.java (MulticastSocket): Removed comment not applying anymore. (getInterface): Use getImpl(). (getTTL): Likewise. (getTimeToLive): Likewise. (setInterface): Likewise. (setNetworkInterface): Likewise. (getNetworkInterface): Likewise. (setLoopback): Likewise. (getLoopback): Likewise. (setTTL): Likewise. (setTimeToLive): Likewise. (joinGroup): Likewise. (leaveGroup): Likewise. (send): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73951 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-262-14/+29
| | | | | | | | | | | | | | | | | | | | * java/net/Socket.java (implCreated): Dont set default value explicitely, added documentation. (inputShutdown): Likewise. (outputShutdown): Likewise. (bound): New private member variable. (bind): Set bound to true. (close): Set bound to false. (isBound): Return bound. * java/net/ServerSocket.java (bound): New private member variable. (bind): Set bound to true. (close): Set bound to false. (isBound): Return bound. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73949 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-9/+43
| | | | | | | | | | | | | | | | | | | | * java/net/URL.java (URL): Fixed documentation to be HTML compliant. (getContent): Completed documentation. (getFile): Likewise. (getPath): Likewise. (getAuthority): Likewise. (getHost): Likewise. (getDefaultPort): Likewise. (getProtocol): Likewise. (hashCode): Likewise. (openConnection): Likewise. (openStream): Likewise. (set): Likewise. (getURLStreamHandler): Wrapped lines to fit into our 79 chars rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73947 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-3/+30
| | | | | | | | | | | | | | | | | * java/net/InetSocketAddress.java (hostname): Made private, added documentation. (addr): Likewise. (port): Likewise. (equals): Completed documentation. (getAddress): Likewise. (getHostName): Likewise. (getPort): Likewise. (hashCode): Likewise. (isUnresolved): Likewise. (toString): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73946 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-26 Michael Koch <konqueror@gmx.de>mkoch2003-11-261-5/+5
| | | | | | | | * java/net/DatagramPacket.java (DatagramPacket): Fixed documentation to become legal HTML. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73944 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-25 Michael Koch <konqueror@gmx.de>mkoch2003-11-254-107/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (factory): Made private. (closed): Removed. (DatagramSocket): Check impl argument, use constructor with SocketAddress argument. (close): Set impl to null, use isClosed(). (isClosed): Check for impl == null. (getLocalAddress): Use isClosed(). (getLocalPort): Check if socket is closed. (getSoTimeout): Likewise. (setSoTimeout): Likewise. (getSendBufferSize): Likewise. (setSendBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setReceiveBufferSize): Likewise. (receive): Likewise. (send): Likewise. (bind): Likewise. (connect): Likewise. (setReuseAddress): Likewise. (getReuseAddress): Likewise. (setBroadcast): Likewise. (getBroadcast): Likewise. (setTrafficClass): Likewise. (getTrafficClass): Likewise. * java/net/MulticastSocket.java (getInterface): Check if socket is closed. (getTTL): Likewise. (getTimeToLive): Likewise. (setInterface): Likewise. (setNetworkInterface): Likewise. (getNetworkInterface): Likewise. (setLoopbackMode): Likewise. (setTTL): Likewise. (setTimeToLive): Likewise. (joinGroup): Likewise. (leaveGroup): Likewise. (send): Likewise. * java/net/ServerSocket.java (closed): Removed. (close): Check if socket is closed, set impl to null. (isClosed): Check impl == null; (ServerSocket): Check impl argument. (getInetAddress): Check if socket is bound. (getLocalPort): Likewise. (getLocalSocketAddress): Likewise. (bind): Check if socket is closed. (implAccept): Likewise. (setSoTimeout): Likewise. (getSoTimeout): Likewise. (setReuseAddress): Likewise. (getReuseAddress): Likewise. (setReceiveBufferSize): Likewise. (getReceiveBufferSize): Likewise. (toString): Make output compliant to JDK 1.4.2. * java/net/Socket.java (closed): Removed. (Socket): Fixed documentation. (connect): Check if socket is closed, changed exception text, fixed documentation. (getInputStream): Check of socket is closed and connected. (getOutputStream): Likewise. (bind): Check if socket is closed. (setTcpNoDelay): Likewise. (getTcpNoDelay): Likewise. (setSoLinger): Likewise. (getSoLinger): Likewise. (sendUrgentData): Likewise. (setOOBInline): Likewise. (getOOBInline): Likewise. (setSoTimeout): Likewise. (getSoTimeout): Likewise. (setSendBufferSize): Likewise. (getSendBufferSize): Likewise. (setReceiveBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setKeepAlive): Likewise. (getKeepAlive): Likewise. (close): Likewise. (shutdownInput): Likewise. (shutdownOutput): Likewise. (getReuseAddress): Likewise. (getTrafficClass): Likewise. (setTrafficClass): Likewise. (isClosed): Check impl == null. (toString): Added missing ']'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73918 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-25 Michael Koch <konqueror@gmx.de>mkoch2003-11-242-39/+47
| | | | | | | | | | | * java/net/DatagramSocket.java (DatagramSocket): Move binding code to bind(), simplify constructors. * java/net/MulticastSocket.java (MulticastSocket): Call parent constructor with null argument, bind socket after setReuseAddress is called, simplify constructors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73902 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-19 Michael Koch <konqueror@gmx.de>mkoch2003-11-191-48/+135
| | | | | | | | | | | * java/net/Socket.java (implCreated): New variable that indicates created impl. (getImpl): New method. (toString): Return more SUN compliant string representation. (various): Use getImpl() instead of impl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73732 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-11 Michael Koch <konqueror@gmx.de>mkoch2003-11-112-2/+2
| | | | | | | | | | | | | | | | | | * java/awt/Font.java, java/awt/datatransfer/DataFlavor.java, java/math/BigInteger.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/rmi/MarshalledObject.java, java/rmi/server/RMIClassLoader.java, java/security/cert/CertStore.java, java/sql/Timestamp.java, java/text/SimpleDateFormat.java, javax/naming/CompoundName.java: Removed some redundant obj == null checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73448 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-11-11 Micheal Koch <konqueror@gmx.de>mkoch2003-11-111-4/+6
| | | | | | | | * java/net/URLStreamHandler.java (toExternalForm): Print port only if host is printed too and port was really given to URL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73445 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/Inet4Address.java (serialVersionUID): Updated.tromey2003-11-091-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73398 138bc75d-0d04-0410-961f-82ee72b054a4
* Somehow this didnt got commited due to full hard disk.mkoch2003-10-291-6/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73040 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-29 Michael Koch <konqueror@gmx.de>mkoch2003-10-293-8/+3
| | | | | | | | | | | | | * java/net/InetAddress.java (equals): Remove redundant obj == null check. * java/net/SocketPermission.java (equals): Likewise. * java/net/URL.java (equals): Likewise. (getURLStreamHandler): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73034 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-13 Michael Koch <konqueror@gmx.de>mkoch2003-10-132-30/+46
| | | | | | | | | | | | | | | | | | | | | | | * java/net/JarURLConnection.java (jarFileURL): Added dcoumentation. (jarFileURLConnection): Reformated documentation. (entryName): Renamed from "element", documentation rewritten. (connectionCache): Renamed from "conn_cache", documentation reformated. (JarURLConnection): Check URL protocol. (getEntryName): Use entryName. (connect): Use connectionCache. (getInputStream): Use entryName, fixed comment. (getJarEntry): Use entryName. (getHeaders): Use entryName. * java/net/URLConnection.java (addRequestProperty): Fixed documentation. (setDefaultRequestProptery): Added comment that it does nothing since JDK 1.3. (getDefaultRequestProperty): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72420 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-13 Michael Koch <konqueror@gmx.de>mkoch2003-10-131-1/+1
| | | | | | | | | | | | | | | | * java/net/java/net/URLStreamHandlerFactory.java (createURLStreamHandler): Removed redundant "public" modifier. * java/sql/DatabaseMetaData.java: (DatabaseMetaData): Readded accidently removed "public" modifier. * java/sql/ParameterMetaData.java: (ParameterMetaData): Readded accidently removed "public" modifier. * java/sql/PreparedStatement.java: (PreparedStatement): Readded accidently removed "public" modifier. * java/sql/Ref.java: (Ref): Readded accidently removed "public" modifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72419 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-11 Michael Koch <konqueror@gmx.de>mkoch2003-10-115-18/+19
| | | | | | | | | | | | | * java/net/ContentHandlerFactory.java, java/net/DatagramSocketImplFactory.java, java/net/FileNameMap.java, java/net/SocketImplFactory.java, java/net/SocketOptions.java, java/net/URLStreamHandlerFactory.java: Removed redundant modifiers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72353 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-11 Michael Koch <konqueror@gmx.de>mkoch2003-10-111-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/nio/NIOSocket.java (setChannel): Initialize impl. * gnu/java/nio/ServerSocketChannelImpl.java (serverSocket): Made it a NIOServerSocket. (impl): Removed. (ServerSocketChannelImpl): Initialize only serverSocket. (initServerSocket): Removed. (getNativeFD): Rewritten. (implConfigureBlocking): Set socket timeout and removed comment. (accept): Rewritten. * gnu/java/nio/SocketChannelImpl.java (impl): New variable. (connected): Removed. (SocketChannelImpl): Initialize impl too. (getImpl): New method. (isConnected): Rewritten. (read): Rewritten, set position in buffer correctly. (write): Set position in buffer correctly. * java/net/ServerSocket.java (getImpl): New method. * gnu/java/nio/NIOServerSocket.java, gnu/java/nio/natNIOServerSocket.cc: New files. * gnu/java/nio/natServerSocketChannelImpl.cc: Removed. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIOServerSocket.java. (nat_source_files): Removed gnu/java/nio/natServerSocketChannelImpl.cc and added gnu/java/nio/natNIOServerSocket.cc. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72345 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-08 Michael Koch <konqueror@gmx.de>mkoch2003-10-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/gcj/protocol/core/Connection.java, gnu/gcj/protocol/core/CoreInputStream.java, gnu/gcj/protocol/core/Handler.java, gnu/gcj/protocol/core/natCoreInputStream.cc, gnu/gcj/protocol/file/Connection.java, gnu/gcj/protocol/file/Handler.java, gnu/gcj/protocol/gcjlib/Connection.java, gnu/gcj/protocol/gcjlib/Handler.java, gnu/gcj/protocol/http/Connection.java, gnu/gcj/protocol/http/Handler.java, gnu/gcj/protocol/jar/Connection.java, gnu/gcj/protocol/jar/Handler.java: Moved to gnu/java/net/protocol. * gnu/java/net/protocol/core/Connection.java, gnu/java/net/protocol/core/CoreInputStream.java, gnu/java/net/protocol/core/Handler.java, gnu/java/net/protocol/core/natCoreInputStream.cc, gnu/java/net/protocol/file/Connection.java, gnu/java/net/protocol/file/Handler.java, gnu/java/net/protocol/gcjlib/Connection.java, gnu/java/net/protocol/gcjlib/Handler.java, gnu/java/net/protocol/http/Connection.java, gnu/java/net/protocol/http/Handler.java, gnu/java/net/protocol/jar/Connection.java, gnu/java/net/protocol/jar/Handler.java: Moved from gnu/gcj/protocol. * gnu/gcj/runtime/FirstThread.java, java/net/URL.java: Use moved protocol handlers. * Makefile.am (ordinary_java_source_files): Moved files. (nat_source_files): Likewise. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72233 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-02 Guilhem Lavaux <guilhem@kaffe.org>mkoch2003-10-022-13/+28
| | | | | | | | | | | | | * java/net/InetSocketAddress.java (InetSocketAddress): Made exception more clear. (equals): Handle case when addr is null. (toString): Likewise. * java/net/NetworkInterface.java (static): Load native library. (getNetworkInterfaces): Rewritten. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72047 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-02 Michael Koch <konqueror@gmx.de>mkoch2003-10-023-18/+45
| | | | | | | | | | | | | | | | | | * java/net/InetAddress.java (zeros): Removed. (ANY_IF): Initalizie in static block. (static): Load library with native methods here and initialize ANY_IF. (isAnyLocalAddress): Check if equal to ANY_IF. (equals): Use addr directly instead of addr1. Simplify for loop. (toString): Rename "result" to "host" and add IP address allways. (getLocalHost): Merged documentation from classpath. * java/net/ServerSocket.java (ServerSocket): New package-private constructor used by java.nio. * java/net/URLConnection.java (getRequestProperties): Check if already connected. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72032 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixed a little mistake that got into last commit.mkoch2003-10-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72025 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-02 Michael Koch <konqueror@gmx.de>mkoch2003-10-021-7/+13
| | | | | | | | | | | * java/net/URL.java (DEFAULT_SEARCH_PATH): New static variable. (ph_cache): Made it a HashMap. (getURLStreamHandler): Rename propVal to ph_search_path and use DEFAULT_SEARCH_PATH. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72023 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixed little typo.mkoch2003-09-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71900 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-29 Michael Koch <konqueror@gmx.de>mkoch2003-09-291-13/+52
| | | | | | | | | | | | | | | | | * java/net/InetAddress.java: (isMulticastAddress): Dont use local variable to store address length. Let the compiler optimize this. (getHostName): Merged dcoumentation from classpath. (getAddress): Likewise. (getHostAddress): Likewise. (hashCode): Likewise. (equals): Likewise. (toString): Likewise. (getByName): Likewise. (getAllByName): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71899 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-29 Michael Koch <konqueror@gmx.de>mkoch2003-09-292-51/+59
| | | | | | | | * java/net/InetAddress.java, java/net/URL.java: Reformated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71897 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-27 Michael Koch <konqueror@gmx.de>mkoch2003-09-271-2/+7
| | | | | | | * java/net/URL.java (getURLStreamHandler): Compile fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71853 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-27 Michael Koch <konqueror@gmx.de>mkoch2003-09-271-21/+32
| | | | | | | | | | * java/net/URL.java (getURLStreamHandler): Check if we have to use cache before trying to retrieve handler from cache. Rename facName to clsName to match classpath more. Reformated some little pieces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71852 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-25 Michael Koch <konqueror@gmx.de>mkoch2003-09-252-20/+21
| | | | | | | | | | | | | | * java/net/InetAddress.java: Reorder imports, remove implementation comment. (isMulticastAddress): Merged documentation from classpath. * java/net/URLConnection.java (setRequestProperty): Check key for null, fix documentation. (adREquestProperty): Check key for null, remove wrong implementation and replace it with comment to overwrite this method in subclasses, fix documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71767 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-22 Michael Koch <konqueror@gmx.de>mkoch2003-09-221-53/+87
| | | | | | | | | * java/net/InetAddress.java: Moves around some code, reformats and adds documentation. No functional changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71649 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-22 Michael Koch <konqueror@gmx.de>mkoch2003-09-221-12/+17
| | | | | | | | | | | | * java/net/JarURLConnection.java (JarURLConnection): Modifed code to match classpath more, fixed comment. (getCertificates): Made it more error prone. (getMainAttributes): Likewise. (getAttributes): Implemented. (getManifest): Reformatted code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71643 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-19 Michael Koch <konqueror@gmx.de>mkoch2003-09-192-8/+6
| | | | | | | | | | * java/net/DatagramSocket.java (getLocalAddress): Renamed result variable to localAddr. * java/net/MulticastSocket.java: No need to import gnu.java.net.PlainDatagramSocketImpl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71561 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-18 Michael Koch <konqueror@gmx.de>mkoch2003-09-183-42/+15
| | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (ch): Removed. (receive): Use getChannel() instead of ch. (send): Likewise. (getChannel): Return null. * java/net/ServerSocket.java (ch): Removed. (setChannel): Removed. (implAccept): Use getChannel() instead of ch. (close): Likewise. (getChannel): Return null. * java/net/Socket.java (ch): Removed. (connect): Use getChannel() instead of ch. (setChannel): Removed. (getChannel): Return null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71516 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/URLStreamHandler.java (parseURL): If original filetromey2003-09-121-0/+4
| | | | | | | | | ends with "/", so must canonical result. * java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus with nul-termination and finding previous "/". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71327 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-10 Michael Koch <konqueror@gmx.de>mkoch2003-09-1014-4405/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java, java/net/MulticastSocket.java, java/net/ServerSocket.java, java/net/Socket.java: Use gnu.java.net.Plain*SocketImpl instead of java.net.PlainSocketImpl. * java/net/PlainDatagramSocketImpl.java, java/net/PlainSocketImpl.java, java/net/SocketInputStream.java, java/net/SocketOutputStream.java, java/net/natPlainDatagramSocketImplNoNet.cc, java/net/natPlainDatagramSocketImplPosix.cc, java/net/natPlainDatagramSocketImplWin32.cc, java/net/natPlainSocketImplNoNet.cc, java/net/natPlainSocketImplPosix.cc, java/net/natPlainSocketImplWin32.cc: Removed. * gnu/java/net/PlainDatagramSocketImpl.java, gnu/java/net/PlainSocketImpl.java, gnu/java/net/SocketInputStream.java, gnu/java/net/SocketOutputStream.java, gnu/java/net/natPlainDatagramSocketImplNoNet.cc, gnu/java/net/natPlainDatagramSocketImplPosix.cc, gnu/java/net/natPlainDatagramSocketImplWin32.cc, gnu/java/net/natPlainSocketImplNoNet.cc, gnu/java/net/natPlainSocketImplPosix.cc, gnu/java/net/natPlainSocketImplWin32.cc: New files (moved from java/net). * configure.in: Create links for gnu/java/net/natPlain*SocketImpl.cc instead of java/net/natPlain*SocketImpl.cc. * configure: Regenerated. * Makefile.am: Moved files from java/net to gnu/java/net. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71274 138bc75d-0d04-0410-961f-82ee72b054a4
* * win32.cc: fixed tab, indentation and whitespacemembar2003-08-294-1158/+560
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inconsistencies removed jvm.h include added includes java/lang/UnsupportedOperationException.h, java/io/IOException.h, java/net/SocketException.h (WSAEventWrapper): class implementation (_Jv_WinStrError): implemented both overloads (_Jv_ThrowIOException): implemented both overloads (_Jv_ThrowSocketException): implemented both overloads (_Jv_select): implemented * include/win32.h: fixed tab, indentation and whitespace inconsistencies wrapped <windows.h> include with #define WIN32_LEAN_AND_MEAN added jvm.h include (WSAEventWrapper): added class declaration (_Jv_WinStrError): added both overload declarations (_Jv_ThrowIOException): added both overload declarations (_Jv_ThrowSocketException): added both overload declarations removed ENOTCONN, ECONNRESET and ENOPROTOOPT defines (_Jv_select): added declaration (_Jv_socket): removed (_Jv_connect): removed (_Jv_close): removed (_Jv_bind): removed (_Jv_accept): removed (_Jv_listen): removed (_Jv_write): removed (_Jv_read): removed * java/io/natFileDescriptorWin32.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed jvm.h include (testCanUseGetHandleInfo): new function which tests whether Win32 GetHandleInformation() call can be used with console buffer handles (only supported on >=WinNT 5.0) (winerr): removed (superseded by _Jv_WinStrError in include/win32.h) (valid): rewrote implementation using GetHandleInformation() (sync): changed exception throwing to use error string and exception helper methods declared in include/win32.h (open): likewise (write): likewise (setLength): likewise (close): likewise (seek): likewise (getFilePointer): likewise (read): likewise * java/io/natFileWin32.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed jvm.h include (_access): use JV_TEMP_UTF_STRING (_stat): likewise (performMkDir): use JV_TEMP_UTF_STRING (performRenameTo): likewise (performDelete): likewise (performCreate): likewise (performSetReadOnly): likewise (performSetLastModified): likewise * java/lang/natWin32Process.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed includes gcj/cni.h, jvm.h (new_string): removed (startProcess): use JV_TEMP_UTF_STRING, changed exception throwing to use error string and exception helper methods declared in include/win32.h * java/net/natInetAddressWin32.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed jvm.h include removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 (aton): use JV_TEMP_UTF_STRING removed POSIX conditional code not relevant to Win32 (lookup): likewise (getLocalHostName): likewise * java/net/natNetworkInterfaceWin32.cc: fixed tab, indentation and whitespace inconsistencies removed unnecessary windows.h, winsock.h and gcj/cni.h includes removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 (winsock2GetRealNetworkInterfaces): new function to compute network interfaces via Winsock2 API (determineGetRealNetworkInterfacesFN): new function for returning a function pointer to the function used to compute network interfaces. (getRealNetworkInterfaces): implemented * java/net/natPlainDatagramSocketImplWin32.cc: fixed tab, indentation and whitespace inconsistencies removed gcj/cni.h include removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 changed net POSIXisms to Win32isms replaced _Jv socket-related calls with their real Win32 equivalents changed exception throwing to use error string and exception helper methods declared in include/win32.h (peekData): implemented timeout support (receive): likewise * java/net/natPlainSocketImplWin32.cc: fixed tab, indentation and whitespace inconsistencies removed gcj/cni.h and gcj/javaprims.h includes removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 changed net POSIXisms to Win32isms replaced _Jv socket-related calls with their real Win32 equivalents changed exception throwing to use error string and exception helper methods declared in include/win32.h (throwConnectException): helper function for connect() (connect): implemented timeout support (accept): likewise (doRead): new helper function common to both read() method overloads, includes timeout support (read): implemented both overloads in terms of doRead() (available): implemented using ioctlsocket() git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70904 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/natInetAddressWin32.cc,membar2003-08-294-0/+271
| | | | | | | | | | | | java/net/natNetworkInterfaceWin32.cc, java/net/natPlainDatagramSocketImplWin32.cc, java/net/natPlainSocketImplWin32.cc: Readded code enclosed in DISABLE_JAVA_NET defines in preparation for MinGW cleanup / networking patch git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70902 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2003-08-281-18/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (ordinary_java_source_files): Added new files. * java/lang/Class.h (_Jv_sharedlib_register_hook): Declare as friend. * java/net/URLClassLoader.java (findClass): Don't use findURLResource. Use loader's getClass method. (URLLoader.getClass): New method. (addURL): Handle `gcjlib' URLs. (SoURLLoader): New class. (SoResource): Likewise. * gnu/gcj/protocol/gcjlib/Connection.java: New file. * gnu/gcj/protocol/gcjlib/Handler.java: New file. * include/jvm.h (struct _Jv_core_chain): Moved from natCore.cc. (_Jv_RegisterCoreHook): Declare. (_Jv_FindCore): Declare. * gnu/gcj/runtime/SharedLibHelper.java: New file. * gnu/gcj/runtime/natSharedLibLoader.cc (CoreHookFunc): New typedef. (core_hook): New function. (struct SharedLibDummy) [saved_core]: New field. (init): Set _Jv_RegisterCoreHook. Throw exception on failure. (register_hook): Set protection domain and class loader on new class. (finalize): Free core chain. * gnu/gcj/Core.java (Core): New constructor. * gnu/gcj/runtime/SharedLibLoader.java: Rewrote to use SharedLibHelper. * gnu/gcj/natCore.cc (_Jv_RegisterResource): Indentation fixlet. (_Jv_create_core): New function. (create): Use it. (default_register_resource): New function. (_Jv_RegisterCoreHook): New global. (_Jv_RegisterResource): Use it. (core_chain_struct): Removed. (_Jv_FindCore): New function. (_Jv_FreeCoreChain): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70892 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-29 Michael Koch <konqueror@gmx.de>mkoch2003-08-284-271/+0
| | | | | | | | | | | * java/net/natInetAddressWin32.cc, java/net/natNetworkInterfaceWin32.cc, java/net/natPlainDatagramSocketImplWin32.cc, java/net/natPlainSocketImplWin32.cc: Removed code enclosed in DISABLE_JAVA_NET defines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70883 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/Socket.java (Socket (SocketImpl)): Don't allow nullbryce2003-08-072-134/+20
| | | | | | | | | | | | | | SocketImpl. Update Javadoc. (bind): Call close() not impl.close() in event of exception. (connect): Likewise. Remove superfluous null checks throughout. * java/net/ServerSocket.java (ServerSocket (int, int, InetAddress)): Don't create an extra socket. Fix for PR libgcj/10868. (bind): Clean up exception handling. Remove superfluous null checks throughout. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70219 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/natPlainSocketImplPosix.cc (connect): Pass the FD as abryce2003-08-071-15/+16
| | | | | | | | | | | ready-to-write argument to _Jv_Select. Reset the socket back to non-blocking state after connecting. (accept): Pass the FD as a ready-to-write argument to _Jv_Select. Throw SocketTimeoutException not InterruptedIOException. (read): Throw SocketTimeoutException not InterruptedIOException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70217 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-02 Michael Koch <konqueror@gmx.de>mkoch2003-08-021-9/+34
| | | | | | | | | | | | | | | | * java/net/URL.java (URL): Added paragraph about the gnu.java.net.nocache_protocol_handlers property. (ph_cache): Renamed from handlers to match classpath's implementation. Reordered it with factory and serialVersionUID member variables. (cache_handlers): New member variable. (static): New static initializer to initialize cache_handlers from gnu.java.net.nocache_protocol_handlers property. (URL): Use ph_cache instead of handlers, reformatted some code to match classpath's implementation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70098 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-01 Stephen Crawley <crawley@dstc.edu.au>mkoch2003-08-011-1/+2
| | | | | | | | * java/net/SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70069 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/URLEncoder.java (encode(String)): Use platform defaulttromey2003-07-221-7/+20
| | | | | | | | | | encoding. (encode(String,String)): Convert to 2-digit upper-case hex number. (hex): New field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69678 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-20 Michael Koch <konqueror@gmx.de>mkoch2003-07-201-4/+12
| | | | | | | | | | * java/net/URL.java (URL): Fixed documentation to name an argument correcty, Reformatted one method declaration. (getURLStreamHandler): Added documentation from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69606 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-07-19 Jeroen Frijters <jeroen@sumatra.nl>mkoch2003-07-191-1/+9
| | | | | | | | | | * java/net/URLClassLoader.java (addURL): Moved implementation to private addURLImpl() to avoid calling addURL from the constructor. (addURLImpl): Contains the code that was previously in addURL. (addURLs): Call addURLImpl(), not addURL(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69591 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-28 Michael Koch <konqueror@gmx.de>mkoch2003-06-282-0/+17
| | | | | | | | | | * java/net/ServerSocket.java (setChannel): New method. * java/net/Socket.java (setChannel): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68631 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-27 Michael Koch <konqueror@gmx.de>mkoch2003-06-272-2/+2
| | | | | | | | | | * java/net/Inet4Address.java (Inet4Address): Made package-private. * java/net/Inet6Address.java (Inet4Address): Made package-private. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68575 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-25 Michael Koch <konqueror@gmx.de>mkoch2003-06-251-8/+127
| | | | | | | | * java/net/PlainDatagramSocketImpl.java: Partly merged with classpath, this mainly adds documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68468 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-24 Michael Koch <konqueror@gmx.de>mkoch2003-06-242-42/+42
| | | | | | | | | | | * java/net/URL.java: Renamed "handler" to "ph" in the whole file to match classpaths version. * java/net/URLStreamHandler.java: (equals): Renamed "handler" to "ph". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68439 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-24 Michael Koch <konqueror@gmx.de>mkoch2003-06-243-2/+377
| | | | | | | | | | | | | * java/net/SocketImpl.java (shutdownInput): Made it non-abstract method throwing an exception like in SUNs JRE. (shutdownOutput): Likewise. * java/net/SocketInputStream.java, java/net/SocketOutputStream.java: New files from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68416 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud