public class DNS extends java.lang.Object implements NameService
NameService.PortType
Constructor and Description |
---|
DNS() |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
localResolve(java.lang.String name,
NameService.PortType portType)
Create a socket address suitable for listening on.
|
SocketAddress |
resolve(java.lang.String name,
NameService.PortType portType)
Create a socket address suitable for connecting to.
|
public SocketAddress resolve(java.lang.String name, NameService.PortType portType) throws java.io.IOException
NameService
resolve
in interface NameService
java.io.IOException
public SocketAddress localResolve(java.lang.String name, NameService.PortType portType) throws java.io.IOException
NameService
localResolve
in interface NameService
java.io.IOException