Skip to main content
January 16, 2013
Question

bw_in is (server to client) or (client to server)?

  • January 16, 2013
  • 1 reply
  • 651 views

Hi all,

The Adobe live docs say that on call to getStats() an object is returned with bw_in and bw_out

bw_out

Current upstream (client to server) bandwidth for this client.

bw_in

Current downstream (server to client) bandwidth for this client.

My application is sending audio to server and there is only 1 connection attached following is the results of getStats():

stats.client_id = 5216658701766707524

stats.bytes_in = 6121325

stats.bytes_out = 3627275

stats.msg_in = 30106

stats.msg_out = 701

stats.msg_dropped = 0

stats.ping_rtt = 1

stats.audio_queue_msgs = 0

stats.video_queue_msgs = 0

stats.data_queue_msgs = 0

stats.dropped_audio_msgs = 0

stats.so_queue_msgs = 0

stats.dropped_video_msgs = 0

stats.audio_queue_bytes = 0

stats.video_queue_bytes = 0

stats.data_queue_bytes = 0

stats.dropped_audio_bytes = 0

stats.dropped_video_bytes = 0

stats.bw_out = 78

stats.bw_in = 4057

stats.so_queue_bytes = 0

How could bw_in(server to client) be 4057, because in my case the client is only sending audio to Server so it should be client to server i.e bw_out value that should be more.

Regards

Sahil

    This topic has been closed for replies.

    1 reply

    January 16, 2013

    Bandwidth is with respect to the server.

    bw_in means data coming in to the server i.e. client to server bandwidth and bw_out means data going out from the server i.e. server to client bandwidth.

    January 17, 2013

    Hi Chandan_Abhishek,

    Thanks a lot for clearing the confusion. The concept was confused when I visited this link of liveDocs

    http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000263.html

    It says that bw_in is server to client.Either the page needs an update or it should be made clear what is server and what is client.Please excuse me if I am wrong.

    Thanks a lot again.

    Regards,

    Sahil.