Jump to content

Recommended Posts

Posted

Greetings,

I am looking to build a function which will return the amount of data sent and received from the current network session to date. Ideally I would like something that behaves like the two functions I have detailed bellow (which don't exist, this is just my way of describing what I am looking for)

_winDataRx( adapter , [optional:data scale])

data scale :

0: (default) bytes

1 : Mb

2 : Gb

Return :

Success : ammount of data received

Failure : -1 (adapter not found or not connected to network)

_winDataTx( adapter , [optional:data scale])

data scale :

0: (default) bytes

1 : Mb

2 : Gb

Return :

Success : ammount of data transmited

Failure : -1 (adapter not found or not connected to network)

If anybody knows of a function which would behave in a similar fashion, or has a notion on how I could develop it myself, it would be appreciated.

Posted

Thank you omikron48, that may function as a temporary solution. UEZ, thanks that looks like a good lead into what I want to do. If anybody else has some other ideas, I like to have a few options.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...