|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monoserv.MonoServ
public class MonoServ
A single instance of the MonoServ software. This will handle and facailitate all the threads for a single "server" running on a single port. Lots of things are hard-coded at the moment, and will be changed in the near future.
Constructor Summary | |
---|---|
MonoServ(java.lang.String xmlFile)
Constructor with a XML file as the starting point for the server. |
Method Summary | |
---|---|
void |
Init()
Initializes the server settings and enables the "server_active" field. |
void |
ServerCleanup()
Just closes the ServerSocket at the moment. |
void |
ServerLoop()
The main server loop. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonoServ(java.lang.String xmlFile)
xmlFile
- A string representation of the XML config file to load.Init()
Method Detail |
---|
public void Init() throws java.lang.Exception
java.lang.Exception
- If something bad goes wrong during setup.public void ServerLoop() throws java.lang.RuntimeException, java.io.IOException
java.lang.RuntimeException
- If the server has not been properly initialized
java.io.IOException
- If something goes wrong in the network communication.public void ServerCleanup() throws java.io.IOException
java.io.IOException
- Based on the close() method in ServerSocketServerSocket.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |