in reply to How to count the number of bytes of a multicast message received?

the recv() method doesn't give the statistics on the number of bytes received.

Maybe I'm misunderstanding you, but doesn't using length on the scalar variable that you supply to recv tell you what you want to know?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

  • Comment on Re: How to count the number of bytes of a multicast message received?

Replies are listed 'Best First'.
Re^2: How to count the number of bytes of a multicast message received?
by sophate (Beadle) on May 29, 2012 at 03:19 UTC

    Thanks BrowserUK! length will serve the purpose! I was so stupid and tried a couple of modules before I realized I could do it by simply getting the length of the variable, haha.