com.caen.TCPPort
Class TCPPort

java.lang.Object
  extended by com.caen.TCPPort.TCPPort

public class TCPPort
extends java.lang.Object


Field Summary
protected  javax.swing.event.EventListenerList listenerList
           
protected  java.net.Socket mSocket
           
protected  TCPPortEventThread mTCPEventThread
           
 
Constructor Summary
TCPPort()
           
 
Method Summary
 void addEventListener(TCPPortEventListener listener)
           
 void close()
           
 void connect(java.lang.String ip, int port)
           
 void fireOnDataEvent(TCPPortEvent evt)
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void removeEventListener(TCPPortEventListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mSocket

protected java.net.Socket mSocket

mTCPEventThread

protected TCPPortEventThread mTCPEventThread

listenerList

protected javax.swing.event.EventListenerList listenerList
Constructor Detail

TCPPort

public TCPPort()
        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

connect

public void connect(java.lang.String ip,
                    int port)
             throws java.io.IOException
Throws:
java.io.IOException

addEventListener

public void addEventListener(TCPPortEventListener listener)
                      throws java.util.TooManyListenersException
Throws:
java.util.TooManyListenersException

removeEventListener

public void removeEventListener(TCPPortEventListener listener)

fireOnDataEvent

public void fireOnDataEvent(TCPPortEvent evt)

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws CAENRFIDException
Throws:
CAENRFIDException