========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : HttpProxyServer
========================================================================
AppWizard has created this HttpProxyServer application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your HttpProxyServer application.
HttpProxyServer.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
HttpProxyServer.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CHttpProxyServerApp application class.
HttpProxyServer.cpp
This is the main application source file that contains the application
class CHttpProxyServerApp.
HttpProxyServer.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
HttpProxyServer.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\HttpProxyServer.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file HttpProxyServer.rc.
res\HttpProxyServer.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
HttpProxyServerDlg.h, HttpProxyServerDlg.cpp - the dialog
These files contain your CHttpProxyServerDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in HttpProxyServer.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named HttpProxyServer.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本毕设的主要目的是基于HTTP代理服务器的实现,实现网络的代理和转发功能。该代理服务器能够拦截客户端请求,将请求转发到真实的Web服务器,并将响应返回给客户端。同时,代理服务器还能够实现Web缓存和内容过滤等功能,提高网络性能和安全性。 该代理服务器主要包括三个模块:请求处理模块、响应处理模块和管理模块。其中,请求处理模块用于拦截客户端请求,并将请求转发到真实的Web服务器;响应处理模块用于接收Web服务器的响应,并将响应返回给客户端;管理模块用于管理代理服务器的配置信息和缓存数据等。 在实现过程中,我们将采用Java语言和Socket编程技术,借助第三方库实现HTTP协议的解析和封装,同时使用多线程技术实现并发处理。具体实现包括: 1. 建立Socket连接,监听客户端请求。 2. 解析HTTP请求报文,获取目标Web服务器的地址和端口号。 3. 建立Socket连接,向Web服务器发送HTTP请求。 4. 接收Web服务器的响应报文,解析并封装为HTTP响应报文。 5. 将HTTP响应报文返回给客户端。 此外,为提高网络性能,我们还将实现Web缓存功能。具体实现包括: 1
资源推荐
资源详情
资源评论
收起资源包目录
http代理服务器的实现.rar (28个子文件)
http代理服务器的实现
代理服务器
HttpProxyServer
HttpProxyServer.clw 1KB
~WRL0329.tmp 79KB
~$服务器原理研究与实现.doc 162B
~WRL2721.tmp 210KB
HttpProxyServerDlg.h 1KB
HttpProxyServer.cpp 2KB
HttpProxyServerDlg.cpp 5KB
res
HttpProxyServer.rc2 407B
HttpProxyServer.ico 766B
HTTPPROXY.h 1KB
~WRL3071.tmp 119KB
Resource.h 785B
HttpProxyServer.dsw 555B
HttpProxyServer.plg 264B
ReadMe.txt 4KB
StdAfx.cpp 217B
HttpProxyServer.aps 35KB
HttpProxyServer.dsp 4KB
HttpProxyServer.ncb 57KB
~WRL1703.tmp 75KB
HttpProxyServer.h 1KB
HttpProxyServer.rc 5KB
HTTPPROXY.cpp 10KB
StdAfx.h 1KB
HttpProxyServer.opt 49KB
使用说明.txt 190B
http代理服务器.c 10KB
http代理服务器的实现(程序).txt 0B
共 28 条
- 1
资源评论
程序员三石
- 粉丝: 36
- 资源: 370
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功