public class SocketUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
configureSocket(Socket socket)
Configures the given
Socket instance with specific socket options
according to the QTP-connections requirements. |
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.public static void configureSocket(Socket socket) throws SocketException
Socket instance with specific socket options
according to the QTP-connections requirements.socket - the Socket instance to be configured.SocketException - if an error occurs.Copyright © 2002–2026 Devexperts LLC. All rights reserved.