Home
last modified time | relevance | path

Searched refs:SO_REUSEADDR (Results 1 – 23 of 23) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java40 public static final int SO_REUSEADDR = 8; field in OldSocketTestCase
72 case SO_REUSEADDR: in getOptionIsSupported()
146 case SO_REUSEADDR: in getSocketOptionString()
DOldSocketTest.java1536 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/
DServerSocketChannelTest.java173 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/
DSocketOptions.java169 public final static int SO_REUSEADDR = 0x04; field
DStandardSocketOptions.java186 public static final SocketOption<Boolean> SO_REUSEADDR = field in StandardSocketOptions
DAbstractPlainDatagramSocketImpl.java282 case SO_REUSEADDR: in setOption()
352 case SO_REUSEADDR: in getOption()
DServerSocket.java700 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
715 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
DDatagramSocket.java1070 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()
DAbstractPlainSocketImpl.java257 case SO_REUSEADDR: in setOption()
293 case SO_REUSEADDR: in getOption()
DSocket.java1399 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/
DServerSocketAdaptor.java173 ssc.setOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
181 return ssc.getOption(StandardSocketOptions.SO_REUSEADDR).booleanValue(); in getReuseAddress()
DServerSocketChannelImpl.java136 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption()
162 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption()
179 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
DSocketOptionRegistry.java66 … map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2)); in options()
DDatagramSocketAdaptor.java333 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
337 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
DSocketAdaptor.java430 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
434 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
DSocketChannelImpl.java183 } else if (name == StandardSocketOptions.SO_REUSEADDR && in setOption()
211 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption()
237 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
DDatagramChannelImpl.java232 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/
DIoBridge.java295 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/
Dnet_util_md.c926 { 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()
DNet.c187 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
DPlainSocketImpl.c198 if (JVM_SetSockOpt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in PlainSocketImpl_socketCreate()
/libcore/luni/src/main/java/android/system/
DOsConstants.java457 public static final int SO_REUSEADDR = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp513 initConstant(env, c, "SO_REUSEADDR", SO_REUSEADDR); in OsConstants_initConstants()