CInternetConnection

CObject
 └CInternetConnection

MFC类CInternetConnection管理与Internet服务器的连接。它是MFC类CFtpConnection,CHttpConnection以及 CGopherConnection的基类。每一个这样的类提供与各自的FTP,HTTP或Gopher服务器通讯的附加功能。
直接与Internet服务器通讯,必须有一个CInternetSession对象和一个CInternetConnection对象。
要了解关于WinInet类如何工作的更多信息,请参阅联机文档“Visual C++程序员指南”中的“使用WinInet编写Internet程序”。
#include <afxinet.h>


CInternetConnection类的成员

构造函数
CInternetConnection构造一个CInternetConnection对象

操作
GetContext获取连接对象的上下文ID
GetSession获取指向与连接相关的CInternetSession对象的指针
GetServerName获取与连接有关的服务器名

操作符
operator HINTERNETInternet会话的句柄