public class SocketUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getAcceptedSocketAddress(Socket socket) |
static List<SocketAddress> |
parseAddressList(String addresses)
Parses a list of comma-separated host names pairs with optional port and with support
of IPv6 numeric addresses in square brackets.
|
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.public static List<SocketAddress> parseAddressList(String addresses)
AddressSyntaxException
- if host name or address format is invalid.Copyright © 2002–2025 Devexperts LLC. All rights reserved.