CInternetConnection Class
Manages your connection to an Internet server.
class CInternetConnection : public CObject
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CInternetConnection object. |
Public Methods
Name |
Description |
---|---|
Gets the context ID for this connection object. |
|
Gets the name of the server associated with the connection. |
|
Gets a pointer to the CInternetSession object associated with the connection. |
Public Operators
Name |
Description |
---|---|
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
CInternetConnection
Requirements
Header: afxinet.h