com.atlassian.tunnel.utils
Class SocketUtils
java.lang.Object
com.atlassian.tunnel.utils.SocketUtils
public final class SocketUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socketAccept
@Nullable
public static Socket socketAccept(ServerSocket socket,
int timeoutMs)
throws IOException
- Throws:
IOException
configureSocket
public static void configureSocket(Socket socket)
throws SocketException
- Throws:
SocketException
isAddressTheSame
public static boolean isAddressTheSame(InetSocketAddress address1,
SocketAddress address2)
forceTimeoutMs
@TestOnly
public static void forceTimeoutMs(int timeoutMs)
Copyright © 2015 Atlassian. All rights reserved.