PR target/27599
[official-gcc.git] / libjava / classpath / compat / java.net / README
blobf249b7516de0ec85dcd99101affd2b05da6af9c6
1 This directory contains various "experiment" programs used to determine
2 the behavior of the java.net class where such behavior is not sufficiently
3 documented by Sun in order to write an implementation from docs alone.
5 Some key findings:
7 The setOption/getOption methods are discussed in the "Networking Enhancements"
8 document for Java 1.1 but are not in the javadocs.  However, the SocketImpl
9 class is shown implementing a SocketOptions interface that is not documented.
10 We assume this is a non-public interface which contains abstract declarations
11 of the get/setOption methods as well as contants for the option_id's.
13 TCP_NODELAY:
14   The option id of this option is 1.  The Object passed to setOption is
15   a Boolean indicating whether this option should be on (true) or off (false).
17 SO_LINGER:
18   The option id of this option is 128.  When SO_LINGER is to be disabled,
19   the Object passed to setOption is Boolean with a value of false.  When
20   SO_LINGER is to be enabled, the Object passed to setOption is an Integer
21   set to the linger value.
23 SO_TIMEOUT:
24   The option id of this option is 4102.  The Object passed to setOption is
25   an Integer that is the new timeout value (0 to disable).