Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


function returns what kind of internet connectivity is available in vb.net

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,30359
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> function returns what kind of internet connectivity is available in vb.net
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 function returns what kind of internet connectivity is ... - 1/27/2006 6:19:34 AM   
  xavior78

 

Posts: 9
Score: 0
Joined: 11/11/2005
Status: offline
Good afternoon,

I am looking for a function in vb.net which will check for the interntet connectivity and if the internet connectivity is there function should return what kind of network connectivity is availavle.

Any suggestions?

Thanks

 
 
Post #: 1
 
 RE: function returns what kind of internet connectivity... - 1/27/2006 6:24:02 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
My first suggestion would be to post on a VB.Net forum. THis is a VBScript forum.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to xavior78)
 
 
Post #: 2
 
 RE: function returns what kind of internet connectivity... - 1/27/2006 6:28:03 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Next I would ask what you mean by "return what kind of network connectivity is availavle"?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: function returns what kind of internet connectivity... - 1/27/2006 6:31:42 AM   
  xavior78

 

Posts: 9
Score: 0
Joined: 11/11/2005
Status: offline
What i ment was return either it is let say:

modem(dial in), lan, proxy, RAS,...

Then return the spead of the connectivity.


(in reply to ebgreen)
 
 
Post #: 4
 
 RE: function returns what kind of internet connectivity... - 1/27/2006 7:08:12 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
I don't know that there is a simple way to do this. To get the connection type, you could try using WMI and the Win32_NetworkAdapterConfiguration class to look for what connection has an IP address then parse that adapters Caption and Description properties to determine the connection type. AS for the speed, I think you would need to query some remote site for something then calculate the speed based on the time and the amount of information transferred. I've never seen code to do this published anywhere though. Perhaps you could explain what your end goal is and there may be some other way to get there. 

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to xavior78)
 
 
Post #: 5
 
 RE: function returns what kind of internet connectivity... - 1/27/2006 7:53:14 AM   
  xavior78

 

Posts: 9
Score: 0
Joined: 11/11/2005
Status: offline
Thanks,

I'll try to look it up.

(in reply to ebgreen)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> function returns what kind of internet connectivity is available in vb.net Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts