spellcast.ui
Interface NetworkController


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.

Author:
Barrie Treloar

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

serverStatus

void serverStatus(boolean start)
Requests the network controller to start or stop sending server status requests.


connect

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.

Parameters:
serverAddress - a server string of the form host[:port]
wizardName - the name of the client's wizard
gender - the gender of the client's wizard

disconnect

void disconnect()
Request the network controller to disconnect from the existing connection.


startServer

void startServer(java.lang.String bindaddress)
Request the network controller to start a server on the specified bindaddress and port.

Parameters:
bindaddress - a server string of the form host[:port]

stopServer

void stopServer()
Request the network controller to stop the existing server.



Copyright © 2001-2005 Spellcast. All Rights Reserved.