J19
J19

Reputation: 717

How can I convert from packets to bytes

In .NET 4, I'm using IPGlobalStatistics class.

The properties OutputPacketRequests, OutputPacketsDiscarded, etc in this class are referred in packets.

How can I convert these properties into bytes?

Upvotes: 0

Views: 4155

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1500275

You can't. Packets can be of different sizes, so there's no single mapping from "number of packets" to "number of bytes". (That class only gives the numbers of packets - not the contents of the packets themselves.)

Upvotes: 2

Related Questions