网站首页  计算机词典

请输入您要查询的字词:

 

字词 CInternetConnection::CInternetConnection
释义 CInternetConnection::CInternetConnection

CInternetConnection( CInternetSession* pSession,
                     LPCTSTR pstrServer,
                     INTERNET_PORT nPort = INTERNET_INVALID_PORT_NUMBER,
                     DWORD dwContext = 1
                   );

参数:
pSession指向CInternetSession对象的指针。
pstrServer指向包含服务器名的字符串的指针。
nPort标识此连接的Internet端口的数目。
dwContextCInternetConnection对象的上下文标识符。请参阅说明部分,以了解有关dwContext的更多信息。

说明:
此成员函数在一个CInternetConnection对象被创建时调用。
不能自己调用CInternetConnection,而是根据要建立的连接类型调用CInternet-Session成员函数:
·CInternetSession::GetFtpConnection
·CInternetSession::GetHttpConnection
·CInternetSession::GetGopherConnection
dwContext的缺省值由MFC从创建InternetConnection派生对象的CInternetSession对象传送到CInternetConnection派生对象。缺省设置为1;但是,你可为连接明确指定一个CInternetSession构造函数中的上下文标识符。此对象及其所做工作将与上下文ID相关联。上下文标识符返回到CInternetSession::OnStatusCallback,以提供其所标志的对象状态。请参阅 “Visual C++程序员指南”中的“使用Internet初步:WinInet”,以了解有关上下文标识符的更多信息。

请参阅:
CInternetSession, CGopherConnection, CFtpConnection, CHttpConnection
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 22:39:55