Re: Dedicated server
Posted: 21 Jan 2008, 00:31
After some tests, it seems that following code from GameServer.cpp always returns the last received message on AutoHost interface:
"std::string msg = hostif->GetChatMessage();"
So when we send only one message on AutoHost interface, the server thinks he's receiving tons of new chat messages on AutoHost interface.
Maybe this behavior is Linux specific because Springie does not seem to be impacted. Or maybe I'm wrong somewhere...
A workaround is to send an empty UDP packet after each chat message on AutoHost interface.
"std::string msg = hostif->GetChatMessage();"
So when we send only one message on AutoHost interface, the server thinks he's receiving tons of new chat messages on AutoHost interface.
Maybe this behavior is Linux specific because Springie does not seem to be impacted. Or maybe I'm wrong somewhere...
A workaround is to send an empty UDP packet after each chat message on AutoHost interface.