Udostępnij za pośrednictwem


CGopherConnection Class

Manages your connection to a gopher Internet server.

Note

The classes CGopherConnection, CGopherFile, CGopherFileFind, CGopherLocator and their members have been deprecated because they do not work on the Windows XP platform, but they will continue to work on earlier platforms.

class CGopherConnection : public CInternetConnection

Remarks

The gopher service is one of three Internet services recognized by the MFC WinInet classes.

The class CGopherConnection contains a constructor and three additional member functions that manage the gopher service: OpenFile, CreateLocator, and GetAttribute.

To communicate with a gopher Internet server, you must first create an instance of CInternetSession, and then call CInternetSession::GetGopherConnection, which creates the CGopherConnection object and returns a pointer to it. You never create a CGopherConnection object directly.

To learn more about how CGopherConnection works with the other MFC Internet classes, see the article Internet Programming with WinInet. For more information about using the other two supported Internet services, FTP and HTTP see the classes CHttpConnection and CFtpConnection.

Requirements

Header: afxinet.h

See Also

Reference

CInternetConnection Class

Hierarchy Chart

CFtpConnection Class

CHttpConnection Class

CInternetConnection Class

CGopherLocator Class

CGopherFile Class

CInternetSession Class

Other Resources

CGopherConnection Members