|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkController
This is an interface to allow the GUI to request networking services. All methods are asynchronous. When the network controller has completed the appropriate request the GUI will be notified accordingly.
Method Summary | |
---|---|
void |
connect(java.lang.String serverAddress,
java.lang.String wizardName,
java.lang.String gender)
Request the network controller to connect to the specified address and port. |
void |
disconnect()
Request the network controller to disconnect from the existing connection. |
void |
serverStatus(boolean start)
Requests the network controller to start or stop sending server status requests. |
void |
startServer(java.lang.String bindaddress)
Request the network controller to start a server on the specified bindaddress and port. |
void |
stopServer()
Request the network controller to stop the existing server. |
Method Detail |
---|
void serverStatus(boolean start)
void connect(java.lang.String serverAddress, java.lang.String wizardName, java.lang.String gender)
serverAddress
- a server string of the form host[:port]wizardName
- the name of the client's wizardgender
- the gender of the client's wizardvoid disconnect()
void startServer(java.lang.String bindaddress)
bindaddress
- a server string of the form host[:port]void stopServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |