CInternetConnection Class

Manages your connection to an Internet server.

class CInternetConnection : public CObject

Members

Public Constructors

Name

Description

CInternetConnection::CInternetConnection

Constructs a CInternetConnection object.

Public Methods

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.

Public Operators

Name

Description

CInternetConnection::operator HINTERNET

A handle to an Internet session.

Remarks

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.

Inheritance Hierarchy

CObject

CInternetConnection

Requirements

Header: afxinet.h

See Also

Reference

CObject Class

Hierarchy Chart