summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/net/natPlainSocketImplPosix.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2006-09-20 Gary Benson <gbenson@redhat.com>gary2006-09-201-2/+2
| | | | | | | | | | | | | | | | | | * java/net/InetAddress.java: Mostly merged with Classpath. * java/net/VMInetAddress.java: New file. * sources.am, Makefile.in: Rebuilt. * java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Create InetAddress objects using InetAddress.getByAddress. * gnu/java/net/natPlainSocketImplPosix.cc (accept, getOption): Likewise. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (peekData, receive, getLocalAddress): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117075 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-21 Mohan Embar <gnustuff@thisiscool.com>membar2006-07-221-0/+5
| | | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (bind): Clear SockAddr before using - needed for OS X/PPC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115669 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/21941:tromey2006-04-201-2/+6
| | | | | | | | | * gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw UnknownHostException if needed. * gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw UnknownHostException if needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113118 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-12-28 Anthony Green <green@redhat.com>green2005-12-281-3/+9
| | | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (connect): Record address and port before attempting anything. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109116 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/15430daney2005-11-151-14/+44
| | | | | | | | | | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (throw_on_sock_closed): New function. (accept): Call it. (close): Call shutdown before closing. (read()): Call read_helper with proper parameters. (read(buffer, int, int)): Likewise. (read_helper): Pass pointer to the PlainSocketImpl, remove native_fd and timeout parameters. Make prototype to match. Use pointer to PlainSocketImpl to access members. Call throw_on_sock_closed in two places. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107036 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-06-05 Anthony Green <green@redhat.com>green2005-06-061-0/+1
| | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (setOption): Fix case fall-through bug. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100650 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-03-15 David Daney <ddaney@avtrex.com>daney2005-03-151-1/+6
| | | | | | | | | | | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (read_helper): Handle count == 0 case. 2005-03-15 David Daney <ddaney@avtrex.com> * java/io/BufferedInputStream.java (available): Use 'in' instead of 'super' for underlying stream access. (close): Ditto. (read(byte[], int, int)): Ditto. (refill): Ditto. (skip): Call skip on underlying stream when possible. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96516 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-01-31 Anthony Green <green@redhat.com>green2005-02-011-5/+16
| | | | | | | | | | | | | * gnu/java/net/natPlainDatagramSocketImplPosix.cc (getOption): Support IP_MULTICAST_LOOP. (setOption): Support IP_MULTICAST_LOOP. * gnu/java/net/natPlainSocketImplPosix.cc (setOption): Add SO_REUSEADDR support. (getOption): Support SO_REUSEADDR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94555 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/net/natPlainSocketImplPosix.ccuweigand2004-10-221-1/+1
| | | | | | | | (gnu::java::net::PlainSocketImpl::available): Call FIONREAD ioctl with 'int *' argument instead of 'long *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89450 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-05-11 Michael Koch <konqueror@gmx.de>mkoch2004-05-111-1/+1
| | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (read): Fixed typo in expression. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81714 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-21 Michael Koch <konqueror@gmx.de>mkoch2004-04-211-1/+1
| | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (SocketInputStream::read): Make sure returned data is a byte value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80959 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-17 Michael Koch <konqueror@gmx.de>mkoch2004-03-171-79/+27
| | | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc (write): Just call write(jbyteArray, offset, len). (read): Just call read(jbyteArray, offset, len). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79578 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/net/natPlainDatagramSocketImplPosix.ccmembar2003-12-161-4/+4
| | | | | | | | | | | (peekData): Throw SocketTimeoutException instead of InterruptedIOException on timeout. (receive): Likewise. * gnu/java/net/natPlainSocketImplPosix.cc (read): Made a minor exception text case change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74714 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-12-01 Michael Koch <konqueror@gmx.de>mkoch2003-12-011-1/+0
| | | | | | | | | | * gnu/java/net/natPlainSocketImplPosix.cc bind(): Dont set SockedImpl.address field on succesful bind. * gnu/java/net/natPlainSocketImplWin32.cc bind(): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74102 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-29 Michael Koch <konqueror@gmx.de>mkoch2003-10-291-6/+6
| | | | | | | | | | * gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption): Directly return if no error occured. * gnu/java/net/natPlainSocketImplPosix.cc (setOption): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73033 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-21 Michael Koch <konqueror@gmx.de>mkoch2003-10-211-55/+55
| | | | | | | | | | | | | * gnu/java/net/PlainDatagramSocketImpl.java, gnu/java/net/PlainSocketImpl.java, gnu/java/net/natPlainDatagramSocketImplPosix.cc, gnu/java/net/natPlainDatagramSocketImplWin32.cc, gnu/java/net/natPlainSocketImplPosix.cc, gnu/java/net/natPlainSocketImplWin32.cc: Renamed fnum to native_fd to match classpath more. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72746 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/net/PlainSocketImpl.java (read): Remove declaration.bryce2003-09-241-6/+14
| | | | | | | | | | | | | | | | | | | | | | (write): Likewise. (SocketInputStream, SocketOutputStream): Declare `read' and `write' native. Remove implementations which called back into PlainSocketImpl. Remove unneccessary overridden methods. * gnu/java/net/natPlainSocketImplNoNet.cc (read): Move implementation to inner class PlainSocketImpl.SocketInputStream. (write): Likewise. * gnu/java/net/natPlainSocketImplPosix.cc: As above. * gnu/java/net/natPlainSocketImplWin32.cc: As above. * gnu/java/net/SocketInputStream.java: Remove unused file. * gnu/java/net/SocketOutputStream.java: Likewise. * Makefile.am: Build CNI headers for PlainSocketImpl.SocketInputStream and SocketOutputStream. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71724 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-09-10 Michael Koch <konqueror@gmx.de>mkoch2003-09-101-0/+857
* 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
OpenPOWER on IntegriCloud