- java.net.InetSocketAddress#createUnresolved(String, int)
- java.net.InetSocketAddress#InetSocketAddress(String, int)
- 包含了域名转 IP 这一步,意思是后续需要用到 ip 地址的地方就不需要每个地方自行转换了?
This class implements an IP Socket Address (IP address + port number) It can also be a pair (hostname + port number), in which case an attempt will be made to resolve the hostname. If resolution fails then the address is said to be unresolved but can still be used on some circumstances like connecting through a proxy.