public class SocketUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getAcceptedSocketAddress(Socket socket) |
static List<SocketAddress> |
parseAddressList(String hostNames,
int defaultPort)
Parses a list of comma-separated host names pairs with optional port and with support
of IPv6 numeric addresses in square brackets.
|
public static List<SocketAddress> parseAddressList(String hostNames, int defaultPort)
AddressSyntaxException
- if host name or address format is invalid.Copyright © 2002-2020 Devexperts LLC. All Rights Reserved.