/libcore/ojluni/src/main/java/java/net/ |
D | StandardSocketOptions.java | 64 public static final SocketOption<Boolean> SO_BROADCAST = 84 public static final SocketOption<Boolean> SO_KEEPALIVE = 115 public static final SocketOption<Integer> SO_SNDBUF = 155 public static final SocketOption<Integer> SO_RCVBUF = 186 public static final SocketOption<Boolean> SO_REUSEADDR = 209 public static final SocketOption<Boolean> SO_REUSEPORT = 241 public static final SocketOption<Integer> SO_LINGER = 273 public static final SocketOption<Integer> IP_TOS = 296 public static final SocketOption<NetworkInterface> IP_MULTICAST_IF = 323 public static final SocketOption<Integer> IP_MULTICAST_TTL = [all …]
|
D | SocketSecrets.java | 36 … private static <T> void setOption(Object obj, SocketOption<T> name, T value) throws IOException { in setOption() 49 private static <T> T getOption(Object obj, SocketOption<T> name) throws IOException { in getOption() 62 …private static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value) throws IOExcept… in setOption() 66 private static <T> T getOption(DatagramSocket s, SocketOption<T> name) throws IOException { in getOption()
|
D | DatagramSocketImpl.java | 281 protected <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() 326 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() 353 private static final Set<SocketOption<?>> dgSocketOptions; 355 private static final Set<SocketOption<?>> mcSocketOptions; 380 protected Set<SocketOption<?>> supportedOptions() { in supportedOptions()
|
D | SocketImpl.java | 389 protected <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption() 432 protected <T> T getOption(SocketOption<T> name) throws IOException { in getOption() 459 private static final Set<SocketOption<?>> socketOptions; 461 private static final Set<SocketOption<?>> serverSocketOptions; 485 protected Set<SocketOption<?>> supportedOptions() { in supportedOptions()
|
D | SocketOption.java | 44 public interface SocketOption<T> { interface
|
/libcore/ojluni/src/main/java/sun/net/ext/ |
D | ExtendedSocketOptions.java | 30 import java.net.SocketOption; 47 private final Set<SocketOption<?>> options; 50 public final boolean isOptionSupported(SocketOption<?> option) { in isOptionSupported() 55 public final Set<SocketOption<?>> options() { return options; } in options() 57 public static final Set<SocketOption<?>> options(short type) { in options() 61 private Set<SocketOption<?>> options0(short type) { in options0() 62 Set<SocketOption<?>> extOptions = null; in options0() 82 public abstract void setOption(FileDescriptor fd, SocketOption<?> option, Object value) in setOption() 86 public abstract Object getOption(FileDescriptor fd, SocketOption<?> option) in getOption() 89 protected ExtendedSocketOptions(Set<SocketOption<?>> options) { in ExtendedSocketOptions() [all …]
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 62 private final static HashMap<Class<?>,Set<SocketOption<?>>> 88 SocketOption.class, Object.class in initMethods() 93 "getOption", Object.class, SocketOption.class in initMethods() 99 SocketOption.class, Object.class in initMethods() 104 "getOption", DatagramSocket.class, SocketOption.class in initMethods() 114 SocketOption<T> option, T value) throws IOException in invokeSet() 132 Method method, Object socket, SocketOption<T> option) throws IOException in invokeGet() 174 public static <T> void setOption(Socket s, SocketOption<T> name, T value) throws IOException in setOption() 202 public static <T> T getOption(Socket s, SocketOption<T> name) throws IOException in getOption() 232 … public static <T> void setOption(ServerSocket s, SocketOption<T> name, T value) throws IOException in setOption() [all …]
|
D | ExtendedSocketOptions.java | 30 import java.net.SocketOption; 50 private static class ExtSocketOption<T> implements SocketOption<T> { 70 public static final SocketOption<SocketFlow> SO_FLOW_SLA = new 95 public static final SocketOption<Boolean> TCP_QUICKACK = 116 public static final SocketOption<Integer> TCP_KEEPIDLE 139 public static final SocketOption<Integer> TCP_KEEPINTERVAL 163 public static final SocketOption<Integer> TCP_KEEPCOUNT 175 private static final Set<SocketOption<?>> extendedOptions = options(); 177 static Set<SocketOption<?>> options() { in options() 178 Set<SocketOption<?>> options = new HashSet<>(); in options() [all …]
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | OptionsTest.java | 43 TestClass(SocketOption<?> option, Object testValue) { in TestClass() 47 static TestClass create(SocketOption<?> option, Object testValue) { in create() 96 Set<SocketOption<?>> options = c.supportedOptions(); in doSocketTests() 101 c.setOption((SocketOption)test.option, test.testValue); in doSocketTests() 102 Object getval = c.getOption((SocketOption)test.option); in doSocketTests() 118 Set<SocketOption<?>> options = c.supportedOptions(); in doDgSocketTests() 123 c.setOption((SocketOption)test.option, test.testValue); in doDgSocketTests() 124 Object getval = c.getOption((SocketOption)test.option); in doDgSocketTests() 142 c.setOption((SocketOption)test.option, test.testValue); in doMcSocketTests() 143 Object getval = c.getOption((SocketOption)test.option); in doMcSocketTests() [all …]
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | NetworkChannel.java | 28 import java.net.SocketOption; 130 <T> NetworkChannel setOption(SocketOption<T> name, T value) throws IOException; in setOption() 152 <T> T getOption(SocketOption<T> name) throws IOException; in getOption() 162 Set<SocketOption<?>> supportedOptions(); in supportedOptions()
|
D | ServerSocketChannel.java | 30 import java.net.SocketOption; 214 public abstract <T> ServerSocketChannel setOption(SocketOption<T> name, T value) in setOption()
|
D | AsynchronousServerSocketChannel.java | 29 import java.net.SocketOption; 244 public abstract <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) in setOption()
|
D | DatagramChannel.java | 31 import java.net.SocketOption; 231 public abstract <T> DatagramChannel setOption(SocketOption<T> name, T value) in setOption()
|
D | SocketChannel.java | 30 import java.net.SocketOption; 255 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | AsynchronousServerSocketChannelImpl.java | 30 import java.net.SocketOption; 180 public final <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, in setOption() 207 public final <T> T getOption(SocketOption<T> name) throws IOException { in getOption() 228 static final Set<SocketOption<?>> defaultOptions = defaultOptions(); 230 private static Set<SocketOption<?>> defaultOptions() { in defaultOptions() 231 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(2); in defaultOptions() 239 public final Set<SocketOption<?>> supportedOptions() { in supportedOptions()
|
D | ExtendedSocketOption.java | 28 import java.net.SocketOption; 38 static final SocketOption<Boolean> SO_OOBINLINE = 39 new SocketOption<Boolean>() {
|
D | SocketOptionRegistry.java | 29 import java.net.SocketOption; 38 private final SocketOption<?> name; 40 RegistryKey(SocketOption<?> name, ProtocolFamily family) { in RegistryKey() 80 public static OptionKey findOption(SocketOption<?> name, ProtocolFamily family) { in findOption()
|
D | ServerSocketChannelImpl.java | 126 public <T> ServerSocketChannel setOption(SocketOption<T> name, T value) in setOption() 159 public <T> T getOption(SocketOption<T> name) in getOption() 182 static final Set<SocketOption<?>> defaultOptions = defaultOptions(); 184 private static Set<SocketOption<?>> defaultOptions() { in defaultOptions() 185 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(2); in defaultOptions() 194 public final Set<SocketOption<?>> supportedOptions() { in supportedOptions()
|
D | AsynchronousSocketChannelImpl.java | 30 import java.net.SocketOption; 454 public final <T> AsynchronousSocketChannel setOption(SocketOption<T> name, T value) in setOption() 482 public final <T> T getOption(SocketOption<T> name) throws IOException { in getOption() 503 static final Set<SocketOption<?>> defaultOptions = defaultOptions(); 505 private static Set<SocketOption<?>> defaultOptions() { in defaultOptions() 506 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(5); in defaultOptions() 520 public final Set<SocketOption<?>> supportedOptions() { in supportedOptions()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | MockServerSocketChannel.java | 23 import java.net.SocketOption; 55 public <T> ServerSocketChannel setOption(SocketOption<T> name, T value) throws IOException { in setOption() 65 public Set<SocketOption<?>> supportedOptions() { in supportedOptions() 70 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption()
|
D | MockSocketChannel.java | 23 import java.net.SocketOption; 105 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption() 116 public Set<SocketOption<?>> supportedOptions() { in supportedOptions() 121 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption()
|
D | MockDatagramChannel.java | 25 import java.net.SocketOption; 105 public <T> DatagramChannel setOption(SocketOption<T> name, T value) in setOption() 111 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption() 131 public Set<SocketOption<?>> supportedOptions() { in supportedOptions()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ExtendedOptionsImpl.java | 59 public static void checkSetOptionPermission(SocketOption<?> option) { in checkSetOptionPermission() 68 public static void checkGetOptionPermission(SocketOption<?> option) { in checkGetOptionPermission()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramSocketImplTest.java | 28 import java.net.SocketOption; 77 private static void setAndAssertOption(MockDatagramSocketImpl sockImpl, SocketOption option, in setAndAssertOption() 172 public void setSuperOption(SocketOption option, Object value) throws IOException { in setSuperOption()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | PlainSocketImpl.java | 41 protected <T> void setOption(java.net.SocketOption<T> name, T value) in setOption() 46 protected <T> T getOption(java.net.SocketOption<T> name) throws java.io.IOException { in getOption()
|