| java.lang.Object net.matuschek.util.TimedSocket
TimedSocket | public class TimedSocket (Code) | | This class offers a timeout feature on socket connections.
A maximum length of time allowed for a connection can be
specified, along with a host and port.
author: David Reilly (written for JavaWorld) author: Daniel Matuschek version: $Id: TimedSocket.java,v 1.2 2002/05/31 14:45:56 matuschd Exp $ version: imported to the net.matuschek.util source tree by Daniel Matuschek |
Inner Class :static class SocketThread extends Thread | |
Method Summary | |
public static Socket | getSocket(InetAddress addr, int port, int delay) Attempts to connect to a service at the specified address
and port, for a specified maximum amount of time. | public static Socket | getSocket(String host, int port, int delay) Attempts to connect to a service at the specified address
and port, for a specified maximum amount of time. |
getSocket | public static Socket getSocket(InetAddress addr, int port, int delay) throws InterruptedIOException, IOException(Code) | | Attempts to connect to a service at the specified address
and port, for a specified maximum amount of time.
Parameters: addr - Address of host Parameters: port - Port of service Parameters: delay - Delay in milliseconds |
getSocket | public static Socket getSocket(String host, int port, int delay) throws InterruptedIOException, IOException(Code) | | Attempts to connect to a service at the specified address
and port, for a specified maximum amount of time.
Parameters: host - Hostname of machine Parameters: port - Port of service Parameters: delay - Delay in milliseconds |
|
|