There are three ways currently supported by Visual C 6.0: one is ISAPI, both network
Server application design interface program, mainly used to create an FTP server, proxy proxy server, http
Server, SMTP server, BBS server, network database server and other server programs. One is Windows
Socket2, based on Windows socket programming, stem from UNIX socket programming. Another one is Wininet
Procedures for design interfaces based on international interconnection network client application.
MFC encapsulates these international internet access to a series of standards for easy-to-use classes. Users can call a client application directly to call the Win32 function or use the MFC's Wininet Class. Users can pass
Wininet is used to do the following: 1 Download the HTML home page. 2 Send FTP requests, upload, download files, or get a list of directory. 3 Use Gopher's menu system to access resources on interconnect.
The MFC provides class libraries and global functions that write the interconnect client applications:
1 CinternetSession Use it to create or initialize a single or more simultaneous conversation.
2 CinternetConnection It is used to connect to the Internet server, which is the base class of CFTPConnection, ChttpConnection, and CGOPherConnection.
3 CinternetFile It and derived class chttpfile and cgopherfile allow access to remote systems via interconnect protocol
4 cfilefind It performs a lookup of the local file. Example: cfileFind Finder; Bool BWORKING = Finder.FindFile ("*. *"); While (bworking) {bworking = Finder.FindNextFile (); cout << (lpctstr) Finder.getFineName () << end1;
5 CinterneTexception includes two public data members: a saver and exception-related error code, a context flag of a save and exception-related application. 6 AFXPARSELURL (LPCTSTSTR PSTRURL, DWORD & DWSERVICEPE, CSTRING & STRSERVER, CSTRING & STRING & STRING & NPORT); if the URL resolution successfully returns a non-zero value. 7 AFXGETINTERNETHANDLETYPE (Hinternet HQuery); Returns all interconnect service types defined in file wininet.h.