|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vigia.client.communications.DataCommunicator
public class DataCommunicator
Implements the client data communication.
| Nested Class Summary | |
|---|---|
protected class |
DataCommunicator.DataCommunicatorReader
This class reads from the socket and sends the commands to the listeners. |
| Field Summary | |
|---|---|
protected java.util.Set<FrameListener> |
frameListeners
The registered listeners. |
protected java.net.DatagramSocket |
socket
The UDP socket. |
| Constructor Summary | |
|---|---|
DataCommunicator(int dataPort)
Creates a data communicator on the port specified. |
|
| Method Summary | |
|---|---|
void |
addFrameListener(FrameListener frameListener)
Adds a listener to obtain the frames from the remote camera. |
void |
close()
Closes the data communications. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.net.DatagramSocket socket
protected java.util.Set<FrameListener> frameListeners
| Constructor Detail |
|---|
public DataCommunicator(int dataPort)
throws java.net.SocketException
dataPort - The data port.
java.net.SocketException - Error creating the socket.| Method Detail |
|---|
public void addFrameListener(FrameListener frameListener)
frameListener - an implementation of the data listener.public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||