|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetwork.AbCommsTCP
network.ServerComms
public class ServerComms
Created on November 4, 2006, 4:18 PM
t.5 Made changes to communications. Switch from using datagrams to use more reliable tcp sockets.
This now starts a serverSocket and waits for a connection. Only one connection is allowed.
| Constructor Summary | |
|---|---|
ServerComms()
Creates a new instance of ServerComms |
|
| Method Summary | |
|---|---|
void |
run()
Handles running the thread. |
void |
stopComms()
Stops comms. |
| Methods inherited from class network.AbCommsTCP |
|---|
addPropertyChangeListener, getBuffer, getConnectedAddress, getPort, getPropertySupport, getRemoteHost, getRunner, getSocket, isAckRequired, isAlreadyConnected, isPauseComms, isRunning, removePropertyChangeListener, setAckRequired, setAlreadyConnected, setBuffer, setConnectedAddress, setPauseComms, setPort, setRemoteHost, setRunner, setRunning, setSocket, startComms |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerComms()
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class AbCommsTCPpublic void stopComms()
stopComms in class AbCommsTCP
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||