How do i get bytes size of the data sent by sfs to client?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
darnpunk
Posts: 229
Joined: 22 Jun 2007, 02:58
Location: SG

How do i get bytes size of the data sent by sfs to client?

Post by darnpunk »

As above,

How do I get the bytes size of the data sent and received by sfs/client? I need to know if there is a way.

Regards,
darnpunk
darnpunk
Posts: 229
Joined: 22 Jun 2007, 02:58
Location: SG

Post by darnpunk »

So is there any way? Yes? No?
Blank_101
Posts: 43
Joined: 02 Dec 2006, 18:30

Post by Blank_101 »

Each message comes in as a String. Since each character in a string is 1 byte, just use String.length of each incoming message to determine the byte size of the message. You will probably need to add a trace somewhere inside the SmartFoxClient.as file to catch the incoming message.
darnpunk
Posts: 229
Joined: 22 Jun 2007, 02:58
Location: SG

Post by darnpunk »

Hi Blank_101!

Thanks for the input. That's one good method but is there a way to do it with some tools? Or can I actually use the debug method? But I will try with the solution you suggested. Thanks!

Regards,
darnpunk
Post Reply