Page 1 of 1 1
Topic Options
#145414 - 2005-08-11 04:02 PM Detect Networkspeed
Maik Offline
Getting the hang of it

Registered: 2003-01-14
Posts: 87
Hello,

is it possible to detect the network speed? I want to check if I am currently logged on in my network or with RAS/VPN.

How can I realize this?

Maik

Top
#145415 - 2005-08-11 04:11 PM Re: Detect Networkspeed
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
$bwidth = WMIQuery("CurrentBandwidth","Win32_PerfRawData_Tcpip_NetworkInterface")
$bname = WMIQuery("name","Win32_PerfRawData_Tcpip_NetworkInterface")
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#145416 - 2005-08-11 04:47 PM Re: Detect Networkspeed
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3165
Loc: Houston TX
WMIQuery()
Top
#145417 - 2005-08-11 04:55 PM Re: Detect Networkspeed
Maik Offline
Getting the hang of it

Registered: 2003-01-14
Posts: 87
Hello,

Quote:

$bwidth = WMIQuery("CurrentBandwidth","Win32_PerfRawData_Tcpip_NetworkInterface")
$bname = WMIQuery("name","Win32_PerfRawData_Tcpip_NetworkInterface")




nice but how do I know which speed is currently available i.e. how do I know if the speed ist fast or slow?

Maik

Top
#145418 - 2005-08-11 05:08 PM Re: Detect Networkspeed
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
bandwith is returned in bytes per sec. do some math with the returned array elements
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (GHOSTSKIKDA) and 175 anonymous users online.
Newest Members
Rodrigo_Jorge, Celay, eltonfaturetto, janvda, OBIns
17708 Registered Users

Generated in 0.031 seconds in which 0.013 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org