com.caen.TCPPort
Class TCPPort
java.lang.Object
com.caen.TCPPort.TCPPort
public class TCPPort
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mSocket
protected java.net.Socket mSocket
mTCPEventThread
protected TCPPortEventThread mTCPEventThread
listenerList
protected javax.swing.event.EventListenerList listenerList
TCPPort
public TCPPort()
throws java.io.IOException
- Throws:
java.io.IOException
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