velosurf.validation
Class EmailCheck.FastTimeoutConnect

java.lang.Object
  extended by velosurf.validation.EmailCheck.FastTimeoutConnect
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
EmailCheck

 class EmailCheck.FastTimeoutConnect
extends java.lang.Object
implements java.lang.Runnable

A socket with short timeout.


Field Summary
private  boolean done
          connection successfull?
private  java.lang.String host
          host.
private  java.io.IOException ioe
          thrown I/O exception.
private  int port
          port.
private  java.net.Socket socket
          wrapped socket.
private  int timeout
          timeout.
private  java.net.UnknownHostException uhe
          throws unknown host exception.
 
Constructor Summary
EmailCheck.FastTimeoutConnect(java.lang.String h, int p, int t)
          Constructor.
 
Method Summary
 java.net.Socket connect()
          Connect.
 void run()
          connection process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

private java.lang.String host
host.


port

private int port
port.


done

private boolean done
connection successfull?


timeout

private int timeout
timeout.


socket

private java.net.Socket socket
wrapped socket.


ioe

private java.io.IOException ioe
thrown I/O exception.


uhe

private java.net.UnknownHostException uhe
throws unknown host exception.

Constructor Detail

EmailCheck.FastTimeoutConnect

public EmailCheck.FastTimeoutConnect(java.lang.String h,
                                     int p,
                                     int t)
Constructor.

Parameters:
h - host
p - port
t - timeout
Method Detail

connect

public java.net.Socket connect()
                        throws java.io.IOException,
                               java.net.UnknownHostException
Connect.

Returns:
socket
Throws:
java.io.IOException
java.net.UnknownHostException

run

public void run()
connection process.

Specified by:
run in interface java.lang.Runnable


~ooOoo~