classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: javanet.c fixes and improvements


From: Roman Kennke
Subject: [cp-patches] FYI: javanet.c fixes and improvements
Date: Tue, 17 Jan 2006 19:57:27 +0000

Hiyo. here come some fixlets and slight improvements to javanet.[ch].
Most notably this now throws SocketTimeoutException and
PortNotReachableException when appropriate, and getOption understands
the SOCKOPT_SO_BROADCAST flag. The shutdownXXX() functions now use the
corresponding target native macros for improved portability.

2006-01-17  Roman Kennke  <address@hidden>

        * native/jni/java-net/javanet.c:
        (_javanet_connect): Changed type of some local variables to jint.
        Fixed error handling to throw a SocketTimeoutException if the
        connection attempt times out.
        (_javanet_bind): Changed type of some local variables to jint.
        (_javanet_accept): Likewise.
        (_javanet_recvfrom): Likewise.
        (_javanet_sendto): Fixed error handling to throw a
        PortUnreachableException when connection is refused.
        (_javanet_get_option): Changed type of some local variables to
jint.
        Implemented SOCKOPT_SO_BROADCAST.
        (_javanet_shutdownInput): Replaced shutdown call with
corresponding
        target native macro.
        (_javanet_shutdownOutput): Replaced shutdown call with
corresponding
        target native macro.
        * native/jni/java-net/javanet.h:
        Defined SOCKET_TIMEOUT_EXCEPTION, PORT_UNREACHABLE_EXCEPTION and
        SOCKOPT_SO_BROADCAST.

/Roman

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]