|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.SocketDataServer
public class SocketDataServer
A class for exporting data to a socket stream. Whenever the given DataReference's data changes, it is sent across the socket to any clients that are listening.
| Field Summary | |
|---|---|
protected boolean |
alive
Whether the server is still active. |
protected Vector |
outs
List of output streams for client sockets. |
protected int |
port
The socket's port. |
protected DataReferenceImpl |
ref
DataReference whose data is linked to the socket stream. |
protected ServerSocket |
socket
The main socket for this SocketDataServer. |
protected Vector |
sockets
List of client sockets listening to this SocketDataServer. |
| Constructor Summary | |
|---|---|
SocketDataServer(int port,
DataReferenceImpl ref)
Construct a SocketDataServer with the given port and data reference. |
|
| Method Summary | |
|---|---|
void |
killServer()
destroys this server and kills all associated threads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ServerSocket socket
protected Vector sockets
protected Vector outs
protected int port
protected DataReferenceImpl ref
protected boolean alive
| Constructor Detail |
|---|
public SocketDataServer(int port,
DataReferenceImpl ref)
throws VisADException,
IOException
VisADException
IOException| Method Detail |
|---|
public void killServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||