Page 1 of 1

extra data received with gameslist from lobby

Posted: 29 Nov 2013, 03:15
by Terminator
recently I've made my java "project" to receive a gameslist from lobby, but I have one question.
There are extra 8 bytes that comes before ending massage.

I've tried read them like integers, but had no sense. Or I've just missed something ? :ninja:

Code: Select all

...
3.1.1 RC3
*bytesleft =264*
200
123
Welcome to the lobby server!  3.1.1 RC 3 is released!  Get it now!
Last hosted game was  0 hours,  0 mins, and  0 secs ago.
parsed as 2 integers.

After version I skeep 255 + 36 (unused stuff) bytes. :?:

Re: extra data received with gameslist from lobby

Posted: 29 Nov 2013, 03:54
by vexed
I would need to see the code, but, have you looked at NETrecvGAMESTRUCT() ?
That is the buffer size we need...

Re: extra data received with gameslist from lobby

Posted: 29 Nov 2013, 10:11
by Terminator
Yes I've seen those functions but there same as in wiki page that I was takeing info

Re: extra data received with gameslist from lobby

Posted: 30 Nov 2013, 05:05
by vexed
That is the lobby status code & MOTD length (message of the day) ... look at readLobbyResponse()

Code: Select all

lobbyStatusCode = ntohl(buffer[0]);
MOTDLength = ntohl(buffer[1]);

Re: extra data received with gameslist from lobby

Posted: 30 Nov 2013, 11:34
by Terminator
Oh, I was right that are integers. Thanks for help.