/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()
|
D | OldSocketTest.java | 1448 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_REUSEADDR); in test_setReuseAddressZ() 1451 handleException(e, SO_REUSEADDR); in test_setReuseAddressZ() 1474 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_REUSEADDR); in test_getReuseAddress() 1476 handleException(e, SO_REUSEADDR); in test_getReuseAddress()
|
/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 | 301 case SO_REUSEADDR: in setOption() 373 case SO_REUSEADDR: in getOption()
|
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 | 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 | 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 | 128 IoBridge.setSocketOption(fd, SO_REUSEADDR, true); in socketCreate()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ServerSocketChannelTest.java | 173 sc.setOption(StandardSocketOptions.SO_REUSEADDR, true); in test_setOption() 176 assertTrue(sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_setOption() 178 sc.setOption(StandardSocketOptions.SO_REUSEADDR, false); in test_setOption() 181 assertEquals(false, (boolean)sc.getOption(StandardSocketOptions.SO_REUSEADDR)); in test_setOption()
|
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/ojluni/src/main/java/jdk/net/ |
D | Sockets.java | 359 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 373 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 383 set.add(StandardSocketOptions.SO_REUSEADDR); in initOptionSets() 396 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 | SocketAdaptor.java | 401 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 405 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
|
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 | 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 | 270 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 326 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 344 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 336 case SocketOptions.SO_REUSEADDR: in getSocketOptionErrno() 337 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno() 432 case SocketOptions.SO_REUSEADDR: in setSocketOptionErrno() 433 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno()
|