public final class UnixTestUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static DomainSocketAddress |
newDomainSocketAddress() |
static java.net.SocketAddress |
newInetLoopbackSocketAddress()
The JDK method may produce IPv4 loopback addresses where
NetUtil.LOCALHOST might be an
IPv6 addresses. |
static DomainSocketAddress |
newSocketAddress()
已过时。
Use
newDomainSocketAddress() instead. |
@Deprecated public static DomainSocketAddress newSocketAddress()
newDomainSocketAddress()
instead.public static DomainSocketAddress newDomainSocketAddress()
public static java.net.SocketAddress newInetLoopbackSocketAddress()
NetUtil.LOCALHOST
might be an
IPv6 addresses.
This difference can stress the system in different ways that are important to test.