Network Message Size

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
jimg
Posts: 7
Joined: 08 Sep 2010, 19:38

Network Message Size

Post by jimg »

Hi,

Is there a what to track the find the size of each message sent and received? I tried using the Session object's getReadBytes and getWrittenBytes, but the Read Bytes is always 0. I'm trying to use this information to estimate bandwidth and would like to determine the average message size for my extension requests/responses.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Network Message Size

Post by Lapo »

A simple way to determine the bandwidth is by monitoring the client via the Admin Tool.
Using the Zone Monitor choose the Zone, Room and User you want to monitor, this will show several statistics including sent and received bytes.

See the first screenshot here:
http://docs2x.smartfoxserver.com/Gettin ... oneMonitor

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
jimg
Posts: 7
Joined: 08 Sep 2010, 19:38

Re: Network Message Size

Post by jimg »

Great thanks!
Post Reply