Which .NET Managed classes to initiate internet connection?
Are there any .net classes that allow for controlling an internet connection? Such as connecting/disconnecting开发者_高级运维 from a wireless connection?
Any details need to be useable in any .net framework version running on XP sp/3 or later windows OS.
HttpWebRequest inherits from the abstract class WebRequest which is used for most high-level internet communications.
"WebRequest is the abstract base class for the .NET Framework's request/response model for accessing data from the Internet"
If you want lower-level but managed access to the WinSock layer then look in the System.Net.Sockets namespace.
精彩评论