synapsi.main
Interface MainForNet

All Known Implementing Classes:
TestMain, NeuronServer

public interface MainForNet

Interface to access synapsi.net package.


Method Summary
 void setClientVersion(java.lang.String clientIP, java.lang.String version)
          Notifies when a client's version number has changed.
 void threadEnd()
          Callback for notifying main that an update has ended and a new thread can start updating.
 int threadStart(UpdateThread t)
          Callback for checking if update protocol can proceed to uploading
 

Method Detail

setClientVersion


public void setClientVersion(java.lang.String clientIP,
                             java.lang.String version)
Notifies when a client's version number has changed.
Parameters:
clientIP - The IP of the client.
version - The new version of the client.

threadStart


public int threadStart(UpdateThread t)
Callback for checking if update protocol can proceed to uploading
Parameters:
t - UpdateThread calling this method.
Returns:
0 if ok to proceed, negative if not.

threadEnd


public void threadEnd()
Callback for notifying main that an update has ended and a new thread can start updating.