summaryrefslogtreecommitdiffstats
path: root/libjava/java/net
Commit message (Collapse)AuthorAgeFilesLines
...
* * gnu/gcj/protocol/jar/Connection.java (getJarFile): download andmark2002-12-092-293/+911
| | | | | | | | | | | | | | | | | | cache remote jar files. * gnu/gcj/runtime/VMClassLoader.java: Don't construct jar URL, only add File.separator to URL when it is a directory. * java/lang/ClassLoader.java: Add Classpath javadoc. (parent): final. (getParent): Add (disabled) security check. (findLibrary): New default method. * java/net/JarURLConnection.java (getManifest): Implement. (getInputStream): Only create InputStream when entry exists. (getHeaders): Only use jarFileURLConnection or JarEntry to set length when they exist. * java/net/URLClassLoader.java: New/Rewritten version from Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59949 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/InetAddress.java (toString): Use hostname when not null,mark2002-12-072-7/+11
| | | | | | | | | don't do an explicit reverse getHostName() lookup. * java/net/Socket.java (setSocketImplFactory): When fac == null throw NullPointerException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59902 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/SocketPermission.java (hashCode): Rewrote.tromey2002-12-051-7/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59843 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-26 Andreas Tobler <a.tobler@schweiz.ch>tromey2002-11-262-6/+0
| | | | | | | | | | * java/net/natPlainDatagramSocketImpl.cc (socklen_t): Don't define. * java/net/natPlainSocketImpl.cc (socklen_t): Don't define. * include/posix.h (socklen_t): Define if not already defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59533 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/URL.java: Merge with Classpath (partly).mark2002-11-222-165/+469
| | | | | | | * java/net/URLStreamHandler: Merge with Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59378 138bc75d-0d04-0410-961f-82ee72b054a4
* Forgot to add to cvs command linemkoch2002-11-212-85/+35
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59340 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-21 Michael Koch <konqueror@gmx.de>mkoch2002-11-211-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/posix.h (_Jv_socket): New method. (_Jv_connect): New method. (_Jv_close): New method. (_Jv_platform_close_on_exec): Prefixed system function with "::". (_Jv_bind): New method. (_Jv_listen): New method. (_Jv_write): New method. (_Jv_read): New method. * include/win32.h (_Jv_socket): New method. (_Jv_connect): New method. (_Jv_close): New method. (_Jv_bind): New method. (_Jv_listen): New method. (_Jv_write): New method. (_Jv_read): New method. * java/net/natNetworkInterface.cc: Include platform.h, removed inclusion of socket.h (getRealNetworkInterfaces): Replaced ::socket() by _Jv_socket() and ::close() by _Jv_close(). * java/net/natPlainDatagramSocketImpl.cc: Removed include of socket.h, definition of NATIVE_CLOSE and _Jv_bind, added some new lines to make code more readable. (create): Replaced ::socket() by _Jv_socket(). (close): Replaced NATIVE_CLOSE() by _Jv_close(). * java/net/natPlainSocketImpl.cc: Removed definition of NATIVE_CLOSE, _Jv_bind, Jv_connect and _Jv_accept, removed include of socket.h, removed some windows defines (now in include/win32.h). (create): Replaced ::socket() by _Jv_socket(). (close): Replaced NATIVE_CLOSE() by _Jv_close(). (write): Replaced ::read by _Jv_write(). (read): Replaced ::read by _Jv_read(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59338 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-20 Michael Koch <konqueror@gmx.de>mkoch2002-11-201-13/+2
| | | | | | | | | | | | | | | | | | | | | * java/io/FileInputStream.java (getChannel): New method. * java/io/FileOutputStream.java (getChannel): New method. * java/net/ServerSocket.java (bind): Removed duplicate code and called another bind method instead. * java/nio/channels/SelectionKey.java (isValid): Removed wrong exception documentation. * java/nio/channels/ServerSocketChannel.java (accept): Added exception documentation. (open): Fixed typo, added exception documentation. * java/nio/channels/spi/AbstractSelectableChannel.java (implCloseChannel): Added exception documentation. (add): Reformated. (register): Added exception documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59307 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-18 Michael Koch <konqueror@gmx.de>mkoch2002-11-181-0/+2
| | | | | | | * java/net/PlainSocketImpl.java: Fix imports. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59221 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-18 Michael Koch <konqueror@gmx.de>mkoch2002-11-184-235/+270
| | | | | | | | | | | | | | * java/net/PlainSocketImpl.java: Reworked imports. * java/net/ServerSocket.java (ServerSocket): Create socket. * java/net/SocketAddress.java: Documentation added. * java/net/natPlainSocketImpl.cc: Reindented. * java/nio/ReadOnlyBufferException.java: New file * java/nio/channels/ClosedChannelException.java: Documentation added. * java/nio/channels/ClosedSelectorException.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59214 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/HttpURLConnection.java ((getPermission): Take portmark2002-11-171-5/+50
| | | | | | | | into consideration. (getErrorStream): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59196 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/HttpURLConnection.java: Merge with GNU Classpath.mark2002-11-171-53/+323
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59195 138bc75d-0d04-0410-961f-82ee72b054a4
* GNU Classpath merge.mark2002-11-032-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-10-31 Stephen Crawley <crawley@dstc.edu.au> * java/lang/Double.java (valueOf): Return new Double(parseDouble(s)). 2002-10-31 Wu Gansha <gansha.wu@intel.com>: * java/util/ArrayList.java (readObject, writeObject): Only read/write size items. 2002-10-31 Wu Gansha <gansha.wu@intel.com>: * java/io/DataInputStream.java (convertFromUTF): Give StringBuffer an initial estimated size to avoid enlarge buffer frequently. 2002-10-31 Wu Gansha <gansha.wu@intel.com>: * java/lang/reflect/Proxy.java (ProxyType): Set loader to System ClassLoader when null. (ProxyType.hashCode): Loader null check no longer needed. (ProxyType.sameTypes): New method. (ProxyType.equals): Use new method. 2002-10-31 Mark Wielaard <mark@klomp.org> * java/net/URLDecoder.java (decode): Initialize Stringbuffer size to length of String. * java/net/URLEncoder.java (encode): Likewise. 2002-10-31 Mark Wielaard <mark@klomp.org> * java/util/zip/ZipInputStream.java (getNextEntry): Throw IOException when stream is closed. (closeEntry): Likewise. (read): Likewise. * java/util/zip/ZipOutputStream.java (putNextEntry): Throw ZipException when no entry active. (closeEntry): Likewise. (write): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58772 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-11-01 Michael Koch <konqueror@gmx.de>mkoch2002-11-015-30/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/InetAddress.java: (isAnyLocalAddress): Implemented. (isLoopbackAddress): Implemented, comment added. (isLinkLocalAddress): Implemented, documentation added. (isSiteLocalAddress): Implemented, documentation added. (isMCGlobal): Implemented, documentation added. (isMCNodeLocal): Implemented, documentation added. (isMCLinkLocal): Implemented, documentation added. (isMCSiteLocal): Implemented, documentation added. (isMCOrgLocal): Implemented, documentation added. (getHostName): Documentation added. (getCanonicalHostName): Implemented, documentation added. (getAddress): Documentation added. (hashCode): Documentation added. (equals): Documentation added. (toString): Fixed implementation. (getByAddress): Use Inet4Address and Inet6Address. (lookup): New linewrap. (getByName): SecurityManager check added, support Inet4Address and Inet6address, comments added. (getAllByName): SecurityManager check added, comments added. * java/net/Inet6Address.java: (Inet6Address): Initialize parent class with addr instead of null. * java/net/URL.java (equals): Documentation added. (getFile): Documentation added. (hashCode): Documentation added. * java/net/natInetAddress.cc: (aton): Fix IPv6 support. * java/net/natPlainDatagramSocketImpl.cc: (peek): Throw PortUnreachableException when suitable. (peekData): Throw PortUnreachableException when suitable. (send): Throw PortUnreachableException when suitable. (receive): Throw PortUnreachableException when suitable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58704 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-11 Michael Koch <konqueror@gmx.de>mkoch2002-10-213-48/+47
| | | | | | | | | | | | | | | | | | | | * java/net/URL.java (URL): Activate SecurityManager checks. (equals): Use URLStreamHandler implementation instead of doing it alone. This allows special protocol stream handlers to change default behaviour. (hashCode): Use URLStreamHandler implementation instead of doing it alone. This allows special protocol stream handlers to change default behaviour. * java/net/URLStreamHandler.java (equals): Implemented default URL equality check. (hostsEqual): Implemented default URL equality check. (hashCode): Implemented default URL hashCode algorithm. * java/net/natPlainDatagramSocketImpl.cc: No lines longer then 80 characters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58345 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-08 Michael Koch <konqueror@gmx.de>mkoch2002-10-108-18/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/HttpURLConnection.java (getPermission): New method. (getErrorStream): New stub method. (getHeaderFieldDate): New stub method. * java/net/Inet4Address.java: (isLinkLocalAddress): Typo fixed. * java/net/InetAddress.java: (readResolve): New stubbed method (for serialization). (isAnyLocalAddress): New stubbed method. (isLoopbackAddress): New stubbed method. (isLinkLocalAddress): New stubbed method. (isSiteLocalAddress): New stubbed method. (isMCGlobal): New stubbed method. (isMCNodeGlobal): New stubbed method. (isMCLinkLocal): New stubbed method. (isMCSiteLocal): New stubbed method. (isMCOrgLocal): New stubbed method. (getCanonicalHostName): New stubbed method. (getByAddress): Create instances of Inet4Address/Inet6Address, instead of InetAddress, documentation added. * java/net/MulticastSocket.java (getInterface): Removed FIXME. (getNetworkInterface): New method. (setNetworkInterface): New method. * java/net/NetworkInterface.java: (toString): Use property "line.separator" instead of "\n". * java/net/URLConnection.java (getContent): New stubbed method. * java/net/URLStreamHandler.java: (equals): New stubbed method. (hostsEqual): New stubbed method. (hashCode): New stubbed method. * java/net/natNetworkInterface.cc: (getRealNetworkInterfaces): Create Inet4Address object instead of InetAddress. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58002 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-05 Michael Koch <konqueror@gmx.de>mkoch2002-10-054-1/+771
| | | | | | | | | | | | | | | | | | | | | | | * java/net/InetAddress.java (getByAddress): Fixed documentation. (getByAddress): New method. * java/net/Inet4Address.java: New file. * java/net/URL.java (URL): Documentation added. (getContent): Documentation added. (getContent): New stubbed method. (getQuery): New method. (openConnection): Documentation added. (openStream): Documentation added. (setURLStreamHandlerFactory): Documentation added. * java/net/URI.java: New stub file. * Makefile.am (java_native_source_files): Added java/net/Inet4Address.java, java/net/Inet6Address.java and java/net/URI.java. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57841 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-04 Michael Koch <konqueror@gmx.de>mkoch2002-10-041-2/+39
| | | | | | | | | | | | | | * java/net/InetAddress.java: (isMulticastAddress): Added documentation. (getHostAddress): Added documentation. (toString): Added documentation. (getByAddress): Fixed documentation. (getByName): Added documentation. (getAllByName): Added documentation. (getLocalHost): Added documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57814 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-03 Adam Megacz <adam@xwt.org>megacz2002-10-031-0/+4
| | | | | | | | * natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out some functionality that isn't supported yet on WIN32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57794 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-03 Michael Koch <konqueror@gmx.de>mkoch2002-10-031-2/+24
| | | | | | | | | | * java/net/InetAddress.java (class InetAddress): Removed final keyword. (equals): Fixed typo. (getByAddress): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57779 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-10-03 Michael Koch <konqueror@gmx.de>mkoch2002-10-035-18/+31
| | | | | | | | | | | | | | | | | * java/net/DatagramPacket.java (setLength): Fixed typo and be HTML-aware. * java/net/InetSocketAddress.java (InetSocketAddress): Correct initialization of hostname, fixed typo. (equals): Added comment about equality of InetSocketAddress objects. * java/net/ServerSocket.java (accept): Added checks. (isClosed): New stubbed method. * java/net/SocketOptions.java: Reindention. * java/net/SocketPermission (SocketPermission): Documentation fixed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57776 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-30 Michael Koch <konqueror@gmx.de>mkoch2002-10-036-126/+561
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (receive): Check with SecurityManager AFTER the packet is received, check if connected to multicast address, documentation added. (send): Only check SecurityManager if connected, check address of packet to send. (connect): Implemented, documentation added. * java/net/Inet6Address.java: New file (not added yet to Makefile.am). * java/net/InetSocketAddress.java (whole file): Reindented. (hostname): New attribute. (InetSocketAddress): Initialize new attribute. (getAddress): Documentation added. (getHostName): Documentation added. (getPort): Documentation added. (hashCode): Documentation added. (isUnresolved): Documentation added. (toString): Conform to output of JDK 1.4.1, documentation added. * java/net/MulticastSocket.java (joinGroup): Removed FIXME, documentation added. (leaveGroup): Removed FIXME, documentation added. (send): Documentation added. * java/net/Socket.java (inputShutdown): New variable. (outputShutdown): New variable. (Socket): Initialize new variables. (getRemoteSocketAddress): Check if connected. (shutdownInput): Set new variable. (shutdownOutput): Set new variable. (isConnected): New method. (isClosed): New method. (isInputShutdown): New method. (isOutputShutdown): New method. * java/net/URLStreamHandler.java (URLStreamHandler): New method. (openConnection): Added documentation. (parseURL): Added documentation. (getHostAddress): New method. (getDefaultPort): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57772 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-25 Michael Koch <konqueror@gmx.de>mkoch2002-09-259-32/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (DatagramSocket): Initialize new instance variables. (close): Reset new instance variables. (getLocalAddress): Remove unneeded SecurityManager usage. (getLocalPort): Check if socket is already bound. (isConnected): New method. (getInetAddress): Implemented. (getPort): Better Implementation, documentation fixed. (getRemoteSocketAddress): New method. * java/net/JarURLConnection.java (element): Typo fixed. (getMainAttributes): New method. (getAttributes): New method (stub only). (getManifest): New method (stub only). * java/net/NetPermission.java: Added serialVersionsUID. * java/net/Socket.java (connect): Check blocking mode of associated channel, documentation added. (getLocalSocketAddress): Better implementation. (getRemoteSocketAddress): Implemented. (isBound): New method. (setSendBufferSize): Documentation added. * java/net/SocketAddress.java: Added serialVersionsUID. * java/net/SocketPermission.java: Added serialVersionsUID. * java/net/URL.java (URL): Wrap for shorter lines, initialize new instance variables, documentation added. (equals): Check new instance variables too. (getContent): Documentation added. (getPath): Documentation added. (getAuthority): New method. (getHost): Documentation added. (getPort): Documentation added. (getDefaultPort): New method. (getProtocol): Documentation added. (getUserInfo): Documentation added. (set): Initialize new instance variables, documentation added. * java/net/URLStreamHandler.java (setURL): New method. * java/net/natPlainDatagramSocketImpl.cc (connect): Fix exception name. (disconnect): Fix exception name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57501 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-25 Michael Koch <konqueror@gmx.de>mkoch2002-09-256-29/+477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (DatagramSocket): Exception documentation added. (bind): Exception documentation added, addded SecurityManager check, added SocketAddress type check. (getSoTimeout): Check impl. (receive): Fix SecurityManager check, check impl, documentation added. (send): Check channel mode, documentation added. (connect): New method. (disconnect): Implemented. (getLocalSocketAddress): New method. (getReceiveBufferSize): Check impl. (setReuseAddress): Check impl. (getReuseAddress): Check impl. (setBroadcast): Check impl. (getBroadcast): Check impl. (setTrafficClass): Check impl, Documentation cleared. (getTrafficClass): Check impl. (getSendBufferSize): Check impl. (setReceiveBufferSize): Check impl, documentation added. (setSendBufferSize): Documentation added. (setDatagramSocketImplFactory): New method. * java/net/HttpURLConnection.java (HTTP_INTERNAL_ERROR): The correct code is 500. (HTTP_NOT_IMPLEMENTED): Added new constant. (setFollowRedirects): Documentation added. (getInstanceFollowRedirects): New method. (setInstanceFollowRedirects): New method. (setRequestMethod): Documentation added. (getResponseCode): Documentation added. (getResponseMessage): Documentation added. * java/net/JarURLConnection.java (JarURLConnection): protected since JDK 1.4. (getJarEntry): java.io.IOException to IOException, documentation added. (getJarFile): Documentation added. * java/net/ServerSocket.java (ServerSocket): Private to public, exception added. (ServerSocket): java.io.IOException to IOException, documentation added. (bind): Check socket address type, documentation added. (bind): java.io.IOException to IOException, documentation added. (accept): Documentation added. (implAccept): Check ch is not non-blocking, documentation added. (setSoTimeout): Documentation fixed. (setReceiveBufferSize): Documentation added. * java/net/Socket.java (Socket): Documentation added. (bind): Documentation added. (connect): Check socket address type, documentation added. (getRemoteSocketAddress): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57494 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-25 Michael Koch <konqueror@gmx.de>mkoch2002-09-2513-205/+497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramPacket (DatagramPacket): Exception documentation added. (setData): Likewise. (setSocketAddress): Likewise. * java/net/DatagramSocketImpl.java (peek): Documentation addded. (peekData): Documentation addded. (send): Documentation addded. (receive): Documentation addded. (connect): New method. (disconnect): New method. (joinGroup): New abstract method. (leaveGroup): New abstract method. * java/net/InetSocketAddress.java (InetSocketAddress): Documentation added. (equals): final keyword added. (getAddress): final keyword added. (getHostName): final keyword added. (getPort): final keyword added. (hashCode): final keyword added. (isUnresolved): final keyword added. * java/net/MulticastSocket.java (MulticastSocket): Documentation added. (MulticastSocket): New method. (joinGroup): Documentation added. (joinGroup): New method. (leaveGroup): Documentation added. (leaveGroup): New method. (send): Documentation added. * java/net/NetworkInterface.java (getByName): Documentation added. (getByInetAddress): Documentation added. (getNetworkInterfaces): Documentation added. * java/net/PlainDatagramSocketImpl.java (connect): New method. (disconnect): New method. * java/net/SocketImpl.java (create): Documentation added. (shutdownInput): Convert public to protected, as it always was. (shutdownOutput): Convert public to protected, as it always was. * java/net/SocketOptions.java (whole file): Reintented. * java/net/URLClassLoader.java (URLClassLoader): SecurityManager check added, documentation added. (findResources): Documentation added. (findClass): Documentation added. (newInstance): More correct method arguments. * java/net/URLConnection.java (connect): Documentation added. (getContent): Documentation added. (getPermission): Documentation added. (getInputStream): Documentation added. (getOutputStream): Documentation added. (setDoInput): Throw correct exception, documentation added. (setDoOutput): Throw correct exception, documentation added. (setAllowUserInteraction): Throw correct exception, documentation added. (setUseCaches): Throw correct exception, documentation added. (setIfModifiedSince): Throw correct exception, documentation added. (setRequestProperty): Throw exception, documentation added. (addRequestProperty): Throw exception, documentation added. (getRequestProperty): Throw exception, documentation added. (getRequestProperties): Documentation added. (setContentHandlerFactory): Documentation added. (guessContentTypeFromName): protected to public. (setFileNameMap): Documentation added. * java/net/URLDecoder.java (URLDecoder): New method. (decode): Documentation added. (whole file): Reindented. * java/net/URLEncoder.java (encode): Documentation added. * java/net/natPlainDatagramSocketImpl.cc (connect): New method. (disconnect): New method. * javax/naming/RefAddr: (addrType): addrType was never final. (equals): Fix typo in method name. * javax/naming/BinaryRefAddr: (equals): Fix typo in method name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57487 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-21 Michael Koch <konqueror@gmx.de>mkoch2002-09-216-13/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/Socket.java (sendUrgentData): New method. (getChannel): New method. * java/net/ServerSocket.java (getChannel): New method. (isBound): New method. * java/net/DatagramSocket.java (DatagramSocket): Two new methods. (bind): New method. (getChannel): New method. (isBound): New method. (send): Added newline to to make shorter lines. * java/net/PlainDatagramSocketImpl.java (mcastGrp): Added argument. (join): Use new mcastGrp. (leave): Use new mcastGrp. (joinGroup): New method. (leaveGroup): New method. * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Added argument, no yet really implemented. (getOption): Added newline for shorter lines. * java/net/natPlainSocketImpl.cc (read, setOption, getOption): Added newline for shorter lines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57380 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-18 Michael Koch <konqueror@gmx.de>mkoch2002-09-181-3/+1
| | | | | | | | | | | | | | | | | * java/util/regex/Matcher.java, java/util/regex/Pattern.java, java/util/regex/PatternSyntaxException.java: Merge with classpath, new files. * Makefile.am (core_java_source_files): Added java/util/regex/Matcher.java, java/util/regex/Pattern.java, java/util/regex/PatternSyntaxException.java * Makefile.in: Regenerated. * include/config.h.in: Added HAVE_NET_IF_H. * java/net/natNetworkInterface.cc (getRealNetworkInterfaces): Removed #if 0 ... #endif. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57275 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-17 Michael Koch <konqueror@gmx.de>mkoch2002-09-171-4/+3
| | | | | | | | * java/net/natNetworkInterface.cc: Removed unneed and yet wrong includes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57246 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-17 Michael Koch <konqueror@gmx.de>mkoch2002-09-172-0/+372
| | | | | | | | | | | | | | * java/net/NetworkInterface.java: New file. * java/net/natNetworkInterface.java: New file. * configure.in: Added check for net/if.h. * configure: Regenerated. * Makefile.am (ordinary_java_source_files): Added NetworkInterface.java. (nat_source_files): Added natNetworkInterface.cc. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57234 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/URLClassLoader.java (findClass): Code source for atromey2002-09-161-2/+2
| | | | | | | class from a jar is not necessarily a jar: URL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57214 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-15 Adam Megacz <adam@xwt.org>megacz2002-09-161-0/+1
| | | | | | | * java/net/natPlainSocketImpl.cc: fixed typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57199 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-15 Adam Megacz <adam@xwt.org>megacz2002-09-161-1/+3
| | | | | | | | * java/net/natPlainSocketImpl.cc: #ifdef-shielded socket timeouts, which don't work on Win32 (yet). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57180 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-14 Adam Megacz <adam@xwt.org>megacz2002-09-141-1/+0
| | | | | | | | | | * java/net/natPlainDatagramSocket.cc: removed #include <ws2tcpip.h>; the mingw header is broken (conflicts with itself). * include/win32.h: included definition for IP_TOS to satisfy natPlainDatagramSocket.cc git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57151 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-13 Michael Koch <konqueror@gmx.de>mkoch2002-09-135-8/+15
| | | | | | | | | | | | | | * java/net/DatagramPacket.java (DatagramPacket): Added linebreak for 80 chars per line. * java/net/JarURLConection.java (getInputStream, getJarEntry): Likewise. * java/net/SocketPermission.java (SocketPermission class docu, implies): Likewise. * java/net/URLClassLoader.java (findResources): Likewise. * java/net/URLConnection.java: Reindendet remark for 80 chars per line git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57105 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-12 Michael Koch <konqueror@gmx.de>mkoch2002-09-124-30/+354
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocketImpl.jav (peekData): New method. * java/net/PlainDatagramSocketImpl.java (peekData): New method. * java/net/natPlainDatagramSocketImpl.cc (peekData): New method. * java/net/URLConnection (getPermission): New method. (addRequestProperty): New method. (getRequestProperties): New method. (guessContentTypeFromStream): New method, not really implemented. (URLConnection): Added/updated documentation. (connect): Added/updated documentation. (getURL): Added/updated documentation. (getContentLength): Added/updated documentation. (getContentType: Added/updated documentation. (getContentEncoding): Added/updated documentation. (getExpiration): Added/updated documentation. (getDate): Added/updated documentation. (getLastModified): Added/updated documentation. (getHeaderField): Added/updated documentation. (getHeaderFields): Added/updated documentation. (getHeaderFieldInt): Added/updated documentation. (getHeaderFieldDate): Added/updated documentation. (getHeaderFieldKey): Added/updated documentation. (getContent): Added/updated documentation. (getInputStream): Added/updated documentation. (getOutputStream): Added/updated documentation. (toString): Added/updated documentation. (setDoInput): Added/updated documentation. (getDoInput): Added/updated documentation. (setDoOutput): Added/updated documentation. (getDoOutput): Added/updated documentation. (setAllowUserInteraction): Added/updated documentation. (getAllowUserInteraction): Added/updated documentation. (setDefaultAllowUserInteraction): Added/updated documentation. (getDefaultAllowUserInteraction): Added/updated documentation. (setUseCaches): Added/updated documentation. (getUseCaches): Added/updated documentation. (setIfModifiedSince): Added/updated documentation. (getIfModifiedSince): Added/updated documentation. (getDefaultUseCaches): Added/updated documentation. (setDefaultUseCaches): Added/updated documentation. (setRequestProperty): Added/updated documentation. (getRequestProperty): Added/updated documentation. (setDefaultRequestProperty): Added/updated documentation. (getDefaultRequestProperty): Added/updated documentation. (setContentHandlerFactory): Added/updated documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57049 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-11 Michael Koch <konqueror@gmx.de>mkoch2002-09-112-5/+248
| | | | | | | | | | | | | | | | | | | | | | | * java/net/Socket.java (Socket): protected to public (since JDK 1.4). Added @specnote. (bind): New method. (connect): Two new methods. (getKeepalive): Get correct socket option. (setKeepalive): Set correct socket option. (getOOBInline): New method. (setOOBInline): New method. * java/net/ServerSocket.java (bind): Two new methods. (getInetAddress): Reimplemented, catch exception. (getLocalSocketAddress): New method. (setReuseAddress): New method. (getReuseAdress): New method. (setReceiveBufferSize): New method. (getReceiveBufferSize): New method. (toString): Made string JDK 1.4 compliant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57032 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-10 Michael Koch <konqueror@gmx.de>mkoch2002-09-103-12/+105
| | | | | | | | | | | | | | | | * java/net/SocketImpl.java (connect): New method. (supportsUrgentData): New method. (sendUrgentData): New method. * java/net/PlainSocketImpl.java (connect): One new method and two new implementation. (sendUrgentData): New method. * java/natPlainSocketImpl.cc (connect): Arguments changed, added support for timeouts. (getOption): Another __java_boolean to jboolean. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57009 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-07 Adam Megacz <adam@xwt.org>megacz2002-09-071-0/+1
| | | | | | | | * java/net/natPlainDatagramSocket.cc: include ws2tcpip.h for definition of IP_TOS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56918 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-04 Michael Koch <konqueror@gmx.de>mkoch2002-09-046-22/+374
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (DatagramSocket): Added documentation. (close): Likewise. (getLocalAddress): Likewise. (getLocalPort): Likewise. (receive): Likewise. (send): Likewise. (setSoTimeout): Likewise. (connect): New method. (disconnect): New method. (getInetAddress): New method (FIXME) (getPort): New method. (setReuseAddress): New method. (getReuseAddress): New method. (setBroadcast): New method. (getBroadcast): New method. (setTrafficClass): New method. (getTrafficClass): New method. * java/net/MulticastSocket.java): (getTTL): Added @see in documentation. (setTTL): Added @see in documentation. (setLoopbackMode): New method. (getLoopbackMode): New method. * java/net/PlainSocketImpl.java: Added new constants for the options SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS * java/net/PlainDatagramSocketImpl.java Added new constants for the options SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS * java/net/natPlainSocketImpl.cc (getOption): Implemented the options SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS (setOption): Implemented the options SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS This should also fix SO_KEEPALIVE * java/net/natPlainDatagramSocketImpl.cc (getOption): Implemented the options SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS (setOption): Implemented the options SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56801 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-04 Michael Koch <konqueror@gmx.de>mkoch2002-09-041-1/+34
| | | | | | | | | * java/net/SocketOptions.java: added static variables to be JDK 1.4 compatible (SO_BROADCAST, SO_OOBINLINE, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56782 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-02 Michael Koch <konqueror@gmx.de>mkoch2002-09-022-259/+258
| | | | | | | | * java/net/DatagramPacket.java, java/net/MulticsstSocket.java: re-indented documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56739 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/JarURLConnection.java (getCertificates): New methodtromey2002-08-3010-15/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from Classpath. * java/net/URLClassLoader.java (URLClassLoader): Extends SecureClassLoader. (definePackage): New method from Classpath. (getPermissions): Likewise. (newInstance): Likewise. (findClass): Construct CodeSource for new class (from Classpath). * java/net/SocketImpl.java (shutdownInput, shutdownOutput): New methods. * java/net/URL.java (getUserInfo): New method. (set(String,String,int,String,String,String,String,String)): New method. * java/net/PlainSocketImpl.java (_Jv_SO_KEEPALIVE_): Define. (shutdownInput, shutdownOutput): Declare. * java/net/PlainDatagramSocketImpl.java (_Jv_SO_KEEPALIVE_): Define. * java/net/natPlainSocketImpl.cc (setOption): Handle keepalive. (getOption): Likewise. (shutdownInput): New method. (shutdownOutput): Likewise. * java/net/natPlainDatagramSocketImpl.cc (setOption): Handle keepalive. (getOption): Likewise. * java/net/SocketOptions.java (SO_KEEPALIVE): New constant. * java/net/Socket.java (setKeepAlive): New method. (getKeepAlive): Likewise. (shutdownInput, shutdownOutput): New methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56685 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-29 Michael Koch <konqueror@gmx.de>mkoch2002-08-291-0/+71
| | | | | | | | | | | | | * java/net/DatagramPacket.java: updated to JDK 1.4 API new methods are: DatagramPacket(byte[] buf, int offset, int length, SocketAddress address), DatagramPacket(byte[] buf, int length, SocketAddress address), void setSocketAddress(SocketAddress address) public SocketAddress getSocketAddress() git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56659 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-28 Michael Koch <konqueror@gmx.de>mkoch2002-08-282-0/+92
| | | | | | | | | * java/net/InetSocketAddress.java: Added some documentation and argument checks for the port numbers. * java/net/DatagramSocketImplFactory.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56638 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-28 Michael Koch <konqueror@gmx.de>mkoch2002-08-281-3/+31
| | | | | | | * java/net/Authenticator.java: added some documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56628 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-27 Michael Koch <konqueror@gmx.de>mkoch2002-08-2714-10/+51
| | | | | | | | | | | | | | | | | | | | * java/net/BindException.java, java/net/JarURLConnection.java, java/net/FileNameMap.java, java/net/HttpURLConnection.java, java/net/InetSocketAddress.java, java/net/DatagramPacket.java, java/net/DatagramSocket.java, java/net/DatagramSocketImpl.java, java/net/MulticastSocket.java, java/net/PasswordAuthentication.java, java/net/ServerSocket.java, java/net/Socket.java, java/net/URLClassLoader.java, java/net/URLConnection.java: add/update of some @since/@deprecated git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56608 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-27 Tony Kimball <alk@pobox.com>tromey2002-08-272-13/+11
| | | | | | | | | | | | | | | | Tom Tromey <tromey@redhat.com> * java/net/natPlainDatagramSocketImpl.cc (NATIVE_CLOSE): New define. (::close): Removed. (PlainDatagramSocketImpl::close): Use NATIVE_CLOSE. * java/net/natPlainSocketImpl.cc (NATIVE_CLOSE): New define. (::close): Removed. (PlainSocketImpl::close): Use NATIVE_CLOSE. * include/win32.h (getcwd): Removed declaration. Include io.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56605 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-23 Michael Koch <konqueror@gmx.de>mkoch2002-08-232-0/+25
| | | | | | | | | | | | * java/net/URLConnection.java, java/netJarURLConnection.java, gnu/gcj/protocol/core/Connection.java, gnu/gcj/protocol/file/Connection.java, gnu/gcj/protocol/http/Connection.java: Added implementation of getHeaderFields(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56532 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2002-08-215-63/+270
| | | | | | | | | | | | | * Makefile.am (ordinary_java_source_files): Added SocketAddress.java, InetSocketAddress.java. * java/net/PortUnreachableException.java: Merged with Classpath. * java/net/SocketTimeoutException.java: Likewise. * java/net/URISyntaxException.java: Likewise. * java/net/SocketAddress.java: New class from Classpath. * java/net/InetSocketAddress.java: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56494 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-08-21 Michael Koch <konqueror@gmx.de>mkoch2002-08-212-0/+60
| | | | | | | | * java/net/Authenticator.java: updated JDK 1.4 * java/net/ContentHandler.java: updated JDK 1.4 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56481 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud