VjGUI
Class NetControl

java.lang.Object
VjGUI.NetControl
- All Implemented Interfaces:
- VjConfig.ChunkDBListener, java.util.EventListener, java.lang.Runnable
- public class NetControl
- extends java.lang.Object
- implements java.lang.Runnable, VjConfig.ChunkDBListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
remote_name
private java.lang.String remote_name
sock
private java.net.Socket sock
instream
private VjConfig.ConfigStreamTokenizer instream
out
private java.io.DataOutputStream out
port
private int port
connected
private boolean connected
thread
private java.lang.Thread thread
netcontrol_targets
private java.util.Vector netcontrol_targets
NetControl
public NetControl()
getHost
public java.lang.String getHost()
getPort
public int getPort()
run
public void run()
- Description copied from interface:
java.lang.Runnable
- This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.
- Specified by:
run in interface java.lang.Runnable
setRemoteHost
public void setRemoteHost(java.lang.String _remote_host,
int _port)
connect
public boolean connect()
disconnect
public boolean disconnect()
reconfigure
protected void reconfigure(VjConfig.ConfigChunk ch)
getChunks
public boolean getChunks()
sendChunk
public boolean sendChunk(VjConfig.ConfigChunk ch)
sendChunks
public boolean sendChunks(VjConfig.ConfigChunkDB db)
removeChunks
public boolean removeChunks(VjConfig.ConfigChunkDB db)
removeChunk
public boolean removeChunk(VjConfig.ConfigChunk ch)
isConnected
public boolean isConnected()
getChunkDescs
public boolean getChunkDescs()
sendChunkDesc
public boolean sendChunkDesc(VjConfig.ChunkDesc d)
removeChunkDescs
public boolean removeChunkDescs(java.lang.String s)
read
public boolean read()
addNetControlListener
public void addNetControlListener(NetControlListener l)
- NetControl Target Stuff
removeNetControlListener
public void removeNetControlListener(NetControlListener l)
notifyNetControlTargets
protected void notifyNetControlTargets(NetControlEvent e)
addChunk
public void addChunk(VjConfig.ChunkDBEvent e)
- ChunkDBListener Stuff
- Specified by:
addChunk in interface VjConfig.ChunkDBListener
removeChunk
public void removeChunk(VjConfig.ChunkDBEvent e)
- Specified by:
removeChunk in interface VjConfig.ChunkDBListener
replaceChunk
public void replaceChunk(VjConfig.ChunkDBEvent e)
- Specified by:
replaceChunk in interface VjConfig.ChunkDBListener
removeAllChunks
public void removeAllChunks(VjConfig.ChunkDBEvent e)
- Specified by:
removeAllChunks in interface VjConfig.ChunkDBListener