On Tue, 15 Jul 2008, Ryan Neufeld wrote:
> So in the process of implementing map imports it dawned on me that if
> a map can't be imported then the server probably should not continue.
> What I am wondering is how to tell the server a critical error has
> occured?

Tpserver-cpp....

All you can really do is log an error (or warning) message. You might like to 
set a flag in the module to say not to start the game. Otherwise, I could 
look at changing the return type of the method (createGame()?) so make it not 
try to move past that stage.

If the server really *must* exit, then calling Network::stopMainLoop (or 
whatever it's called, don't have the source in front of me) will stop the 
server when it's able to.


> Ryan 'jphr' Neufeld

Later
Lee

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to