Export (0) Print
Expand All

CInternetConnection Class

Manages your connection to an Internet server.

class CInternetConnection : public CObject

Name

Description

CInternetConnection::CInternetConnection

Constructs a CInternetConnection object.

Name

Description

CInternetConnection::GetContext

Gets the context ID for this connection object.

CInternetConnection::GetServerName

Gets the name of the server associated with the connection.

CInternetConnection::GetSession

Gets a pointer to the CInternetSession object associated with the connection.

Name

Description

CInternetConnection::operator HINTERNET

A handle to an Internet session.

It is the base class for MFC classes CFtpConnection, CHttpConnection, and CGopherConnection. Each of these classes provides additional functionality for communicating with the respective FTP, HTTP, or gopher server.

To communicate directly with an Internet server, you must have a CInternetSession object and a CInternetConnection object.

To learn more about how the WinInet classes work, see the article Internet Programming with WinInet.

Header: afxinet.h

Show:
© 2014 Microsoft