unidiff version of the last patch I submitted
Tony Kimball
alk@pobox.com
Sat Jul 6 00:10:00 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 06 July 2002 00:20, you wrote:
> * Why use NATIVE_CLOSE and not the existing close() function?
The existing close which wraps closesocket conflicts with the close prototyped
in io.h, which the patch added to win32.h (referenced via platform.h), in
order to provide several missing declarations on the mingw32 target.
>
> * I thought we had set up things in SocketImpl so that the `fd' field
> was never actually used. So I'd guess that the new methods don't
> actually do anything. Am I wrong about this?
You're certainly correct, and I overlooked this when I merged my changes from
last summer into a current HEAD workspace. It's not surprising that my app
did not detect this ineffectual shutdown, since it doesn't attempt i(o) on
the socket after shutdownInput(Output) is called. Responsive to your
observation, I modified the patch to do something a bit more effectual,
and the result is attached.
The only differences from the previous patch are in PlainSocketImpl.java and
natPlainSocketImpl.cc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9JpidiZRIr8ozroIRAivxAJsFsBhXYgMTVxY2CVcvfZNpmyJkNgCeOLzD
1B1cOBhwCc2CEFiv7igECu0=
=pR6C
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff.out
Type: text/x-diff
Size: 21855 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020706/16c96257/attachment.bin>
More information about the Java-patches
mailing list