|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vigia.server.communications.DataCommunicator
public class DataCommunicator
Implements the client data communication.
| Field Summary | |
|---|---|
protected java.io.ByteArrayOutputStream |
baos
A buffer for the image. |
private java.net.InetAddress |
clientAddr
The client's Internet address. |
private int |
clientPort
The Client's port. |
protected long |
sequence
The next sequence number. |
protected java.net.DatagramSocket |
socket
The socket to communicate with the client. |
| Constructor Summary | |
|---|---|
DataCommunicator()
Creates a data communicator. |
|
| Method Summary | |
|---|---|
void |
sendFrame(java.awt.image.BufferedImage image)
Sends a frame to the client. |
void |
setClientIp(java.net.InetAddress clientAddr)
Sets the client's Internet address. |
protected void |
setClientPort(int clientPort)
Sets the client's port. |
| 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
private int clientPort
private java.net.InetAddress clientAddr
protected long sequence
protected java.io.ByteArrayOutputStream baos
| Constructor Detail |
|---|
public DataCommunicator()
throws java.net.SocketException
java.net.SocketException - Error creating the socket.| Method Detail |
|---|
public void sendFrame(java.awt.image.BufferedImage image)
throws java.io.IOException
image - the frame.
java.io.IOException - Error sending the frame.protected void setClientPort(int clientPort)
clientPort - The Client's port.public void setClientIp(java.net.InetAddress clientAddr)
clientAddr - The client's Internet address.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||