CInternetConnection选件类

管理您的组件与Internet服务器的连接。

class CInternetConnection : public CObject

成员

s7seyaek.collapse_all(zh-cn,VS.110).gif公共构造函数

名称

说明

CInternetConnection::CInternetConnection

构造 CInternetConnection 对象。

s7seyaek.collapse_all(zh-cn,VS.110).gif公共方法

名称

说明

CInternetConnection::GetContext

获取此连接对象的上下文ID。

CInternetConnection::GetServerName

获取服务器的名称与连接。

CInternetConnection::GetSession

获取一个指向 CInternetSession 对象与连接。

s7seyaek.collapse_all(zh-cn,VS.110).gif公共运算符

名称

说明

CInternetConnection::operator HINTERNET

对于Internet会话的句柄。

备注

它是MFC选件类的 CFtpConnectionCHttpConnectionCGopherConnection基类。 这些选件每个类都将进行通信提供附加功能与单个HTTP、FTP或地鼠服务器。

直接与Internet服务器若要连接,您必须具有 CInternetSession 对象和 CInternetConnection 对象。

若要了解有关WinInet选件类的工作原理,请参见文章 编程时WinInet的Internet

继承层次结构

CObject

CInternetConnection

要求

Header: afxinet.h

请参见

参考

CObject选件类

层次结构图