Home
last modified time | relevance | path

Searched refs:SocketOption (Results 1 – 25 of 32) sorted by relevance

12

/libcore/ojluni/src/main/java/jdk/net/
DSockets.java62 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 …]
DExtendedSocketOptions.java28 import java.net.SocketOption;
39 private static class ExtSocketOption<T> implements SocketOption<T> {
59 public static final SocketOption<SocketFlow> SO_FLOW_SLA = new
/libcore/ojluni/src/main/java/java/nio/channels/
DNetworkChannel.java28 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()
DServerSocketChannel.java30 import java.net.SocketOption;
209 public abstract <T> ServerSocketChannel setOption(SocketOption<T> name, T value) in setOption()
DAsynchronousServerSocketChannel.java29 import java.net.SocketOption;
239 public abstract <T> AsynchronousServerSocketChannel setOption(SocketOption<T> name, T value) in setOption()
DDatagramChannel.java31 import java.net.SocketOption;
226 public abstract <T> DatagramChannel setOption(SocketOption<T> name, T value) in setOption()
DSocketChannel.java30 import java.net.SocketOption;
250 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption()
/libcore/ojluni/src/main/java/sun/nio/ch/
DExtendedSocketOption.java28 import java.net.SocketOption;
38 static final SocketOption<Boolean> SO_OOBINLINE =
39 new SocketOption<Boolean>() {
DAsynchronousServerSocketChannelImpl.java30 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()
DSocketOptionRegistry.java29 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()
DServerSocketChannelImpl.java126 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()
DAsynchronousSocketChannelImpl.java30 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()
DSocketChannelImpl.java36 import java.net.SocketOption;
205 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption()
238 public <T> T getOption(SocketOption<T> name) in getOption()
270 static final Set<SocketOption<?>> defaultOptions = defaultOptions();
272 private static Set<SocketOption<?>> defaultOptions() { in defaultOptions()
273 HashSet<SocketOption<?>> set = new HashSet<SocketOption<?>>(8); in defaultOptions()
291 public final Set<SocketOption<?>> supportedOptions() { in supportedOptions()
DSocketAdaptor.java284 private void setBooleanOption(SocketOption<Boolean> name, boolean value) in setBooleanOption()
294 private void setIntOption(SocketOption<Integer> name, int value) in setIntOption()
304 private boolean getBooleanOption(SocketOption<Boolean> name) throws SocketException { in getBooleanOption()
313 private int getIntOption(SocketOption<Integer> name) throws SocketException { in getIntOption()
DDatagramSocketAdaptor.java265 private void setBooleanOption(SocketOption<Boolean> name, boolean value) in setBooleanOption()
275 private void setIntOption(SocketOption<Integer> name, int value) in setIntOption()
285 private boolean getBooleanOption(SocketOption<Boolean> name) throws SocketException { in getBooleanOption()
294 private int getIntOption(SocketOption<Integer> name) throws SocketException { in getIntOption()
/libcore/ojluni/src/main/java/java/net/
DSocketSecrets.java36 … 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()
DSocketOption.java44 public interface SocketOption<T> { interface
DSocketImpl.java372 <T> void setOption(SocketOption<T> name, T value) throws IOException { in setOption()
392 <T> T getOption(SocketOption<T> name) throws IOException { in getOption()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMockServerSocketChannel.java23 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()
DMockSocketChannel.java23 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()
DMockDatagramChannel.java25 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/
DExtendedOptionsImpl.java59 public static void checkSetOptionPermission(SocketOption<?> option) { in checkSetOptionPermission()
68 public static void checkGetOptionPermission(SocketOption<?> option) { in checkGetOptionPermission()
/libcore/ojluni/annotations/hiddenapi/java/net/
DPlainSocketImpl.java41 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()
DSocketImpl.java124 <T> void setOption(java.net.SocketOption<T> name, T value) throws java.io.IOException { in setOption()
128 <T> T getOption(java.net.SocketOption<T> name) throws java.io.IOException { in getOption()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java25 import java.net.SocketOption;
430 public <T> SocketChannel setOption(SocketOption<T> name, T value) { in setOption()
440 public Set<SocketOption<?>> supportedOptions() { in supportedOptions()
445 public <T> T getOption(SocketOption<T> name) throws IOException { in getOption()

12