se.unlogic.standardutils.net
Class SocketUtils
java.lang.Object
se.unlogic.standardutils.net.SocketUtils
public class SocketUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketUtils
public SocketUtils()
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.