checkBandwidth callback functions

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default checkBandwidth callback functions

    Hi,
    I just start with server-side embedded checkBandwidth function. I wonder is
    there any description of arguments and return values of onBWCheck and onBWDone.
    Seems like onBWCheck return something, but does it matter what it returns? I
    wonder why there is no documentation published, since this is built-in future.
    Also not clear what onBWDone arguments are. It has four arguments. With
    analogue with 'Script-based bandwidth detection' it return download bandwidth,
    but what about upload bvandwidth? van it also be detected?

    Thanks

    RusD Guest

  2. Similar Questions and Discussions

    1. #40398 [NEW]: parent and self callback functions erroneously called statically
      From: levi at alliancesoftware dot com dot au Operating system: PHP version: 5CVS-2007-02-08 (CVS) PHP Bug Type: Scripting...
    2. Display Callback
      hi, I have a problem with display callback. I do the next: go to "LABEL_1" -- draw some 3D cubes ....
    3. What is a callback?
      Hello everyone, I've seen the word "callback" used in a few Changelogs for a few modules saying that a few callbacks were fixed in the module. I...
    4. Callback: any interest in this?
      I've written a module that basically implements the functionality of a Tk callback for non-Tk applications. I know that most times you can just...
    5. #10743 [Com]: class functions & PHP core functions inconsistently clash ;)
      ID: 10743 Comment by: destes at ix dot netcom dot com Reported By: jjones at net-conex dot com Status: Open...
  3. #2

    Default Re: checkBandwidth callback functions

    The docs should describe this (I think). In any case, onBWCheck takes an arg,
    some random data that the server sends the client used to measure the available
    bw. You simply need to return a value, doesn't matter what, as an indication
    to the server that the client has received the data. onBWCheck may be called
    multiple times.

    onBWDone is called when the server is done measuring the bw and is passed the
    bw in Kbits/sec in the first argument. The 2nd and 3rd arguments are unused
    (to maintain compatibility with an older version of script based bw detection),
    and the 4th arg is latency in msec.

    Upload bw is not supported by native bw detection. But you could take the
    script based and just do the same thing, but in the opposite direction.

    Ed Chan Guest

  4. #3

    Default Re: checkBandwidth callback functions

    It looks like this didn't make it into the docs - not sure how that happened, but I've filed a bug.

    Apologies and thanks!
    Jody
    tech_writer_00 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139