Results 1 to 4 of 4

Thread: How to get server to client transferred bytes?

  1. #1
    Join Date
    Sep 2014
    Posts
    23

    Default How to get server to client transferred bytes?

    I am currently using IHTTPStreamerSession.getIOPerformanceCounter().getMessagesOutBytes() for HTTP streaming. But I am not sure if this is ok.

  2. #2

    Default

    Hello there,

    You can use IOPerformanceCounter in the IMediaStreamActionNotify.onStop() handler:
    public void onStop(IMediaStream stream)
    {
    	IOPerformanceCounter perf = stream.getMediaIOPerformance();
    	getLogger().info("Total OutBytes: " + perf.getMessagesOutBytes());
    }
    But the best way is look at log files. Look at the sc-bytes (server to client bytes) in rows with x-event "destroy"

    I hope this helps.

    Salvadore

  3. #3
    Join Date
    Sep 2014
    Posts
    23

    Default

    Hey Salvadore,

    Thanks for the answer.

    The problem is that it is part of a custom module that logs how many bytes were transferred in the last 10 seconds.

    It is HTTP connection so I don't think IMediaStream will work.

  4. #4
    Join Date
    Sep 2014
    Posts
    23

    Default

    Also I have a watchdog that runs every 10 seconds. Not just onStop.

Similar Threads

  1. How to get total bytes transferred by stream?
    By vanilHorizon in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 01-02-2015, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •