se.unlogic.standardutils.net
Class SocketUtils

java.lang.Object
  extended by se.unlogic.standardutils.net.SocketUtils

public class SocketUtils
extends Object


Constructor Summary
SocketUtils()
           
 
Method Summary
static void closeSocket(Socket socket)
           
static Socket getSocket(String host, int port, int timeout)
           
static boolean isPortAvailable(int port)
           
static boolean isValidInetAddress(String address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketUtils

public SocketUtils()
Method Detail

getSocket

public static Socket getSocket(String host,
                               int port,
                               int timeout)
                        throws IOException
Throws:
IOException

isValidInetAddress

public static boolean isValidInetAddress(String address)

isPortAvailable

public static boolean isPortAvailable(int port)

closeSocket

public static void closeSocket(Socket socket)


Copyright © 2011. All Rights Reserved.