/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTestCase.java | 45 public static final int SO_REUSEADDR = 8; field in OldSocketTestCase 77 case SO_REUSEADDR: in getOptionIsSupported() 151 case SO_REUSEADDR: in getSocketOptionString()
|
/libcore/ojluni/src/main/java/java/net/ |
D | DatagramSocketImpl.java | 261 } else if (name == StandardSocketOptions.SO_REUSEADDR) { in setOption() 262 setOption(SocketOptions.SO_REUSEADDR, value); in setOption() 287 } else if (name == StandardSocketOptions.SO_REUSEADDR) { in getOption() 288 return (T) getOption(SocketOptions.SO_REUSEADDR); in getOption()
|
D | SocketImpl.java | 375 } else if (name == StandardSocketOptions.SO_REUSEADDR) { in setOption() 376 setOption(SocketOptions.SO_REUSEADDR, value); in setOption() 395 } else if (name == StandardSocketOptions.SO_REUSEADDR) { in getOption() 396 return (T)getOption(SocketOptions.SO_REUSEADDR); in getOption()
|
D | SocketOptions.java | 171 @Native public final static int SO_REUSEADDR = 0x04; field
|
D | StandardSocketOptions.java | 186 public static final SocketOption<Boolean> SO_REUSEADDR = field in StandardSocketOptions
|
D | AbstractPlainDatagramSocketImpl.java | 303 case SO_REUSEADDR: in setOption() 375 case SO_REUSEADDR: in getOption()
|
D | DatagramSocket.java | 1119 getImpl().setOption(SocketOptions.SO_REUSEADDR, new Integer(on?-1:0)); in setReuseAddress() 1121 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress() 1136 Object o = getImpl().getOption(SocketOptions.SO_REUSEADDR); in getReuseAddress()
|
D | ServerSocket.java | 716 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress() 732 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
|
D | Socket.java | 1493 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress() 1509 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
|
D | PlainSocketImpl.java | 133 IoBridge.setSocketOption(fd, SO_REUSEADDR, true); in socketCreate()
|
/libcore/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 360 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 374 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 384 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 397 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | AsynchronousServerSocketChannelImpl.java | 191 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 215 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 233 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
D | ServerSocketAdaptor.java | 162 ssc.setOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 170 return ssc.getOption(StandardSocketOptions.SO_REUSEADDR).booleanValue(); in getReuseAddress()
|
D | ServerSocketChannelImpl.java | 144 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 170 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 187 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
D | AsynchronousSocketChannelImpl.java | 466 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 490 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 510 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
D | DatagramSocketAdaptor.java | 324 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 328 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
|
D | SocketAdaptor.java | 403 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 407 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
|
D | SocketOptionRegistry.java | 66 … map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2)); in options()
|
D | SocketChannelImpl.java | 224 if (name == StandardSocketOptions.SO_REUSEADDR && Net.useExclusiveBind()) { in setOption() 250 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 277 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
D | DatagramChannelImpl.java | 262 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 318 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 336 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 244 sc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in set_option() 247 assertTrue(sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in set_option() 249 sc.setOption(StandardSocketOptions.SO_REUSEADDR, false); in set_option() 252 assertEquals(false, (boolean)sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in set_option()
|
D | AsynchronousServerSocketChannelTest.java | 212 assc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_options() 213 assertTrue(assc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_options() 270 assc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_close() 347 assertTrue(supportedOptions.contains(StandardSocketOptions.SO_REUSEADDR)); in test_supportedOptions()
|
D | AsynchronousSocketChannelTest.java | 254 asc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_close() 848 asc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_options() 849 assertTrue(asc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_options() 873 assertTrue(supportedOptions.contains(StandardSocketOptions.SO_REUSEADDR)); in test_supportedOptions()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 345 case SocketOptions.SO_REUSEADDR: in getSocketOptionErrno() 346 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno() 441 case SocketOptions.SO_REUSEADDR: in setSocketOptionErrno() 442 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno()
|
/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 920 { java_net_SocketOptions_SO_REUSEADDR, SOL_SOCKET, SO_REUSEADDR }, 1223 if (level == SOL_SOCKET && opt == SO_REUSEADDR) { in NET_SetSockOpt() 1292 if (useExclBind || getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, in NET_Bind()
|