public class TestIPv6NIOServerSocketChannel extends Object
Constructor and Description |
---|
TestIPv6NIOServerSocketChannel() |
Modifier and Type | Method and Description |
---|---|
void |
ensurePreferIPv4()
Checks whether we are running with java.net.preferIPv4Stack=true
|
static void |
main(String[] args) |
void |
testServerSocket()
Checks whether we are effected by the JDK issue on windows, and if so
ensures that we are running with preferIPv4Stack=true.
|
void |
testServerSocketFromLocalhostResolution()
Tests whether every InetAddress we obtain by resolving can open a
ServerSocketChannel.
|
public void testServerSocket() throws IOException
IOException
public void ensurePreferIPv4() throws IOException
IOException
public void testServerSocketFromLocalhostResolution() throws IOException
IOException