|
Q: How can I write a module to handle a certain protocol?
All
you have to do is extend the GeneralServer class. It's
very easy. Please read the JavaDoc generated documentation
for details and also take a look at the built-in servers
(they also extend this class).
The process of building a server
has two parts. First you must define the part that will listen for
incoming connections. This part is generally the same for all servers,
so you should look at the existing servers. After this, you must
define a second part that will interact with the client to process
commands. This part can be called a 'shell'. This shell is invoked
by the first part with some arguments (like the incoming socket).
Also the main class of the module
must define the properties that can be modified by the server administrator.
This is also an easy to do process. Read the JavaDoc for details.
If you have more questions
please post some messages in the forum. (Please read the
available documentation before)
|