Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Test Network Bandwidth

Keywords: 	  Test Network Bandwidth  IP Grabber Extender

Question:

I would like to use this extender to test network bandwidth, so that I can launch an executable if there is sufficient bandwidth. A response time of 30 ms would be good - anything greater would not launch the executable.

Answer:

Could try the wxPing command in the WInSock extender, then use the wxGetLastErr to get an perhaps better error code.

Sorry, cannot go below 1 second, but you could add your own timing...

AddExtender("wwipg34i.dll")
a=GetTickCount()
ipPing("www.yahoo.com",1)
b=GetTickCount()
diff=(b-a)/1000.0
Message("Ping Time",diff)