As with every extension in GOIM i recommend you download all projects and get it compiled
first, and then start developing your extension (see /DeveloperGuide)Create your own plugin project to start your extension .. and create an extension for
the extension point: net.sphene.goim.serverbrowser.masterserverprotocolNow create a new 'masterserverprotocol' with a unique id, a name of your choosing and a
class which implements IMasterServerProvider.
IMasterServerProvider
IMasterServerProvider is a very simple interface with only two methods:
public IWizardNode getAddMasterServerWizardNode();
This method will be called when a user wants to add a new master server and decides
for your protocol. This method is expected to return an IWizardNode. The very simplest
Implementation would just return a DefaultAddMasterServerWizardNode which just queries
the user for a server IP and nothing more. See DefaultAddMasterServerWizardNode for a
example on how to implement a IWizardNode
public GameServer[] retrieveServerList(MasterServer server);
This method does the actual work. It is expected to retrieve a server list from
the given master server and return all found GameServers.
it should NOT do anything more than a simple query, it should NOT attempt to query
each single server to retrieve more information, just the IP and ports of the servers are
actually enough, if you have more information you can set it, but it is not your
responsibility to query each single server.
If you have any questions, just contact me: herbert.poul@gmail.com by email or jabber:
kahless@sphene.net or see /Feedback for a link to the GOIM-dev mailing list.You can also write questions into the board.. ;)