com.atlassian.tunnel.utils
Class SocketUtils

java.lang.Object
  extended by com.atlassian.tunnel.utils.SocketUtils

public final class SocketUtils
extends Object


Method Summary
static void configureSocket(Socket socket)
           
static void forceTimeoutMs(int timeoutMs)
           
static boolean isAddressTheSame(InetSocketAddress address1, SocketAddress address2)
           
static Socket socketAccept(ServerSocket socket, int timeoutMs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.