hkontrol.connection
Class TCPConnection

java.lang.Object
  extended by hkontrol.connection.TCPConnection
All Implemented Interfaces:
HKConnection

public class TCPConnection
extends java.lang.Object
implements HKConnection


Constructor Summary
TCPConnection(java.lang.String host, int port)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void reconnect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPConnection

public TCPConnection(java.lang.String host,
                     int port)
              throws HKConnectionException
Throws:
HKConnectionException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws HKConnectionException
Specified by:
getInputStream in interface HKConnection
Throws:
HKConnectionException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws HKConnectionException
Specified by:
getOutputStream in interface HKConnection
Throws:
HKConnectionException

reconnect

public void reconnect()
               throws HKConnectionException
Specified by:
reconnect in interface HKConnection
Throws:
HKConnectionException