User Tag List

Results 1 to 6 of 6

Thread: How to know the number of Bytes being sent?

  1. #1
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to know the number of Bytes being sent?

    Hello,

    I'm in the process of creating a small online game. The problem is, I don't want my game to send soo much data which will drain the users download limits (Not everyone has download limits).

    How do I know how many bytes is being sent? Even better, is there a way to know how many MB's of data have been sent/received in my application?

    Thanks!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How to know the number of Bytes being sent?

    Not directly. You'd have to record it manually.. but I'm not sure how big the header for an OINC message is.
    A number message's body is 4 bytes.
    String body is length+1.
    Stack body can be got via SendStackSize().

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: How to know the number of Bytes being sent?

    If you really need to accurately record how many bytes a packet contains, have a look at the protocol specifications

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How to know the number of Bytes being sent?

    Which are, unfortunately, out of date on the wiki

  5. #5
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to know the number of Bytes being sent?

    Wikipedia never lies!

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How to know the number of Bytes being sent?

    We're not talking about Wikipedia here.

Similar Threads

  1. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 10:51 PM
  2. How the #@#$! do I see allocations and live bytes in xcode 4.2??
    By jregork in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 1st November 2011, 05:23 AM
  3. How biggest (in bytes) can be a frame???
    By Zombie in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 2nd November 2009, 08:04 AM
  4. Moo....Bytes?
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 30th December 2007, 05:41 PM
  5. [Binary Object] Signed bytes = Big problem
    By Nifflas in forum Extension Development
    Replies: 4
    Last Post: 2nd December 2006, 12:29 PM

Posting Permissions

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