Page 2 of 2

Re: Dedicated server

Posted: 21 Jan 2008, 00:31
by bibim
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.

Re: Dedicated server

Posted: 21 Jan 2008, 19:11
by Auswaschbar
I think I found the error.
There was no check for socket errors like EWOULDBLOCK. It returned the uninitialized buffer which still contained the old data over and over again.

Re: Dedicated server

Posted: 21 Jan 2008, 22:43
by bibim
Fixed indeed ;)