* gnu/java/net/PlainDatagramSocketImpl.java
(finalize): Moved to directly after constructor.
(getNativeFD): New method.
* gnu/java/net/PlainSocketImpl.java
(getNativeFD): New method.
From-SVN: r71792
+2003-09-25 Michael Koch <konqueror@gmx.de>
+
+ * gnu/java/net/PlainDatagramSocketImpl.java
+ (finalize): Moved to directly after constructor.
+ (getNativeFD): New method.
+ * gnu/java/net/PlainSocketImpl.java
+ (getNativeFD): New method.
+
2003-09-25 Ingo Proetel <proetel@aicas.com>
* java/io/ObjectOutputStream.java:
{
}
+ protected void finalize() throws Throwable
+ {
+ synchronized (this)
+ {
+ if (fnum != -1)
+ close();
+ }
+ super.finalize();
+ }
+
+ public int getNativeFD()
+ {
+ return fnum;
+ }
+
/**
* Binds this socket to a particular port and interface
*
{
mcastGrp(((InetSocketAddress)mcastaddr).getAddress(), netIf, false);
}
-
- protected void finalize() throws Throwable
- {
- synchronized (this)
- {
- if (fnum != -1)
- close();
- }
- super.finalize();
- }
}
super.finalize();
}
+ public int getNativeFD()
+ {
+ return fnum;
+ }
+
/**
* Sets the specified option on a socket to the passed in object. For
* options that take an integer argument, the passed in object is an