InternetConnect与GetFtpConnection有什么区别解决办法
InternetConnect与GetFtpConnection有什么区别
这两个函数都能实现FTP链接,他们有什么区别么?
------解决方案--------------------
CInternetSession 不管支持FTP还可以支持HTTP等多种协议
------解决方案--------------------
CInternetSession是建立一个或多个服务器的会话
GetFtpConnection是CInternetSession的一个函数,用于创建一个FTP连接,
CInternetSession还可以创建GetGopherConnection,HTTP等
.................
CInternetSession session("FTPSession");
m_pFTPConnect = session.GetFtpConnection(....);
..........................
...................................
hHost=InternetOpen(....);
hConnect=InternetConnect(........);
这两个函数都能实现FTP链接,他们有什么区别么?
------解决方案--------------------
CInternetSession 不管支持FTP还可以支持HTTP等多种协议
------解决方案--------------------
CInternetSession是建立一个或多个服务器的会话
GetFtpConnection是CInternetSession的一个函数,用于创建一个FTP连接,
CInternetSession还可以创建GetGopherConnection,HTTP等