/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTestCase.java | 40 public static final int SO_REUSEADDR = 8; field in OldSocketTestCase 72 case SO_REUSEADDR: in getOptionIsSupported() 146 case SO_REUSEADDR: in getSocketOptionString()
|
D | OldSocketTest.java | 1536 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_REUSEADDR); in test_setReuseAddressZ() 1539 handleException(e, SO_REUSEADDR); in test_setReuseAddressZ() 1563 ensureExceptionThrownIfOptionIsUnsupportedOnOS(SO_REUSEADDR); in test_getReuseAddress() 1565 handleException(e, SO_REUSEADDR); in test_getReuseAddress()
|
/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()
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocketOptions.java | 169 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 | 282 case SO_REUSEADDR: in setOption() 352 case SO_REUSEADDR: in getOption()
|
D | ServerSocket.java | 700 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress() 715 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
|
D | DatagramSocket.java | 1070 getImpl().setOption(SocketOptions.SO_REUSEADDR, new Integer(on?-1:0)); in setReuseAddress() 1072 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress() 1087 Object o = getImpl().getOption(SocketOptions.SO_REUSEADDR); in getReuseAddress()
|
D | AbstractPlainSocketImpl.java | 257 case SO_REUSEADDR: in setOption() 293 case SO_REUSEADDR: in getOption()
|
D | Socket.java | 1399 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress() 1414 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketAdaptor.java | 173 ssc.setOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 181 return ssc.getOption(StandardSocketOptions.SO_REUSEADDR).booleanValue(); in getReuseAddress()
|
D | ServerSocketChannelImpl.java | 136 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 162 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 179 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
D | SocketOptionRegistry.java | 66 … map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2)); in options()
|
D | DatagramSocketAdaptor.java | 333 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 337 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
|
D | SocketAdaptor.java | 430 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress() 434 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
|
D | SocketChannelImpl.java | 183 } else if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 211 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 237 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
D | DatagramChannelImpl.java | 232 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption() 295 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption() 313 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 295 case SocketOptions.SO_REUSEADDR: in getSocketOptionErrno() 296 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno() 374 case SocketOptions.SO_REUSEADDR: in setSocketOptionErrno() 375 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno()
|
/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 926 { java_net_SocketOptions_SO_REUSEADDR, SOL_SOCKET, SO_REUSEADDR }, in NET_MapSocketOption() 1237 if (level == SOL_SOCKET && opt == SO_REUSEADDR) { in NET_SetSockOpt() 1307 if (useExclBind || getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, in NET_Bind()
|
D | Net.c | 187 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
|
D | PlainSocketImpl.c | 198 if (JVM_SetSockOpt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in PlainSocketImpl_socketCreate()
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 457 public static final int SO_REUSEADDR = placeholder(); field in OsConstants
|
/libcore/luni/src/main/native/ |
D | android_system_OsConstants.cpp | 513 initConstant(env, c, "SO_REUSEADDR", SO_REUSEADDR); in OsConstants_initConstants()
|