Page 1 of 1

Network package sizes

Posted: 30 Oct 2012, 20:35
by janheuninck
Hi guys,

Is there a way to log the size of the incoming and outgoing packages on the server (per client)? I'd like to figure out the size of the ISFSObjects I'm sending to the clients.


Thanks
Jan

Re: Network package sizes

Posted: 30 Oct 2012, 23:58
by rjgtav
Hi,

The SFSObject has two helpful methods which lets you see exactly what you're sending to the client. The methods I'm talking about are the getDump() and the getHexDump(). I can't recall exactly which one does that, but I can assure you that one of them shows the size of the object in bytes (maybe it's the getHexDump()).

And next time please post SFS2X related questions on the SFS2X Questions forums. This forum where you posted is for SmartFoxServer Pro related questions only.

Cheers

Re: Network package sizes

Posted: 31 Oct 2012, 09:27
by Lapo
You can change the log settings to DEBUG level to see the dump and sizes of each packet.
Just edit the config/log4j.properties modifying this entry:

Code: Select all

log4j.category.com.smartfoxserver=DEBUG ...etc...