Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java45 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/
DDatagramSocketImpl.java261 } 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()
DSocketImpl.java375 } 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()
DSocketOptions.java171 @Native public final static int SO_REUSEADDR = 0x04; field
DStandardSocketOptions.java186 public static final SocketOption<Boolean> SO_REUSEADDR = field in StandardSocketOptions
DAbstractPlainDatagramSocketImpl.java303 case SO_REUSEADDR: in setOption()
375 case SO_REUSEADDR: in getOption()
DDatagramSocket.java1119 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()
DServerSocket.java716 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
732 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
DSocket.java1493 getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(on)); in setReuseAddress()
1509 return ((Boolean) (getImpl().getOption(SocketOptions.SO_REUSEADDR))).booleanValue(); in getReuseAddress()
DPlainSocketImpl.java133 IoBridge.setSocketOption(fd, SO_REUSEADDR, true); in socketCreate()
/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()
DAsynchronousServerSocketChannelTest.java212 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()
DAsynchronousSocketChannelTest.java254 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/
DSockets.java360 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/
DAsynchronousServerSocketChannelImpl.java191 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption()
215 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption()
233 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
DServerSocketAdaptor.java162 ssc.setOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
170 return ssc.getOption(StandardSocketOptions.SO_REUSEADDR).booleanValue(); in getReuseAddress()
DServerSocketChannelImpl.java144 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption()
170 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption()
187 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
DAsynchronousSocketChannelImpl.java466 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption()
490 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption()
510 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
DDatagramSocketAdaptor.java324 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
328 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
DSocketAdaptor.java403 setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); in setReuseAddress()
407 return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); in getReuseAddress()
DSocketOptionRegistry.java66 … map.put(new RegistryKey(StandardSocketOptions.SO_REUSEADDR, Net.UNSPEC), new OptionKey(1, 2)); in options()
DSocketChannelImpl.java224 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()
DDatagramChannelImpl.java250 if (name == StandardSocketOptions.SO_REUSEADDR && in setOption()
306 if (name == StandardSocketOptions.SO_REUSEADDR && in getOption()
324 set.add(StandardSocketOptions.SO_REUSEADDR); in defaultOptions()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java346 case SocketOptions.SO_REUSEADDR: in getSocketOptionErrno()
347 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno()
442 case SocketOptions.SO_REUSEADDR: in setSocketOptionErrno()
443 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR, booleanToInt((Boolean) value)); in setSocketOptionErrno()
/libcore/ojluni/src/main/native/
Dnet_util_md.c920 { 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()

12