VC 简易代理服务器的设计(Socket编程).doc_第1页
VC 简易代理服务器的设计(Socket编程).doc_第2页
VC 简易代理服务器的设计(Socket编程).doc_第3页
VC 简易代理服务器的设计(Socket编程).doc_第4页
VC 简易代理服务器的设计(Socket编程).doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

VC+简易代理服务器的设计(Socket编程) 摘 要 代理服务器是介于浏览器和Web服务器之间的一台服务器,它的功能是代理网络用户去取得网络信息。它的工作原理是,接收客户机的数据连接请求,并将请求传给Web服务器;再从Web服务器接收返回的数据,最后把数据传给客户端显示。本论文讲述的是关于一个简 .摘  要代理服务器是介于浏览器和Web服务器之间的一台服务器,它的功能是代理网络用户去取得网络信息。它的工作原理是,接收客户机的数据连接请求,并将请求传给Web服务器;再从Web服务器接收返回的数据,最后把数据传给客户端显示。本论文讲述的是关于一个简单的代理服务器的实现,在实现中采用客户机/服务器结构模型开发应用程序,基于一般的访问浏览速度慢、效率底、安全功能不强等原因,将以简单、合理、有效为原则;为了方便分析和设计,系统设计中设置不同的状态量用于标识客户机、代理服务器及服务器间的联结状态。在保证系统基本功能的同时,使用多线程机制使得代理系统有更好的延续性。此代理系统具有简单,易用,网络化等优点,能够完成一般的HTTP访问代理服务。关键词:客户机/服务器结构;多线程;套接字;代理服务器 The Design of Simple Proxy Server AbstractThe proxy server is a server which situates between the browser and a Web server. It’s principle of work is, it receives the connection request from the client, and hands down the requested to the Web server, then receives data which is returned from the Web server., finally hands it down the data to the client. In the realization, it adopts Client/Server structural model to develop application. Because of browse speed slow, low efficient and not safe enough, it takes simple, reasonable and effective as the principle. In the system design, it sets different states to identify client, proxy server and the connective state between servers. When the systems basic function are guaranteed, it use the multithreading to enable the proxy server to have a better continuous feature. This proxy system has the merit such as simple, easy to use and so on, and it can complete the proxy of general HTTP visit. Key words: Client / Server architecture;Multithreading;Socket;Proxy Server 本课题的研究方法此代理服务器系统将是建立在Windows NT平台上的网络应用程序设计。由于需要服务器为其他许多称为客户的主机提供服务,而客户主机又可以随时打开和关闭,在选择网络应用程序体系结构时就采用支持这些特点的客户机/服务器结构。还将运用Windows下网络编程的标准接口WinSock ,因为它允许两个或多个应用程序在相同机器上,或者是通过网络相互交流,它是真正协议无关的接口。为了便于直接使用Windows提供的网络编程接口,我们使用Microsoft Visual C+ 6.0作为开发工具,利用MFC类库中提供的两个Socket类CAsyncSocket和Csocket。使用这两个Socket类,我们可以运用面向对象的方法来进行Socket编程,而且它们还分别在较低和较高层次上封装了Windows Sockets API,为程序员开发Socket程序提供了便利。 目  录1    引言    11.1    课题背景    11.2    本课题研究的意义    11.3    本课题的研究方法    12    理论基础    2 2.1    代理服务器    22.2    目前的代理服务技术    32.3    SOCKET 面向连接的编程模型    42.4    WINSOCK库    52.4.1    winsock的寻址方式    52.4.2    字节顺序    62.5    系统基本套接字调用    62.5.1    创建和关闭套接字socket()和closesocket()    62.5.2    指定本地地址bind()    62.5.3    设置监听状态-listen()    62.5.4    建立套接字连接connect()和accept()    62.5.5    收发数据-send()和recv()    73    设计方案    73.1    基本函数设计    73.2    多线程流程    8 4    服务器的实现    84.1    环境创建    84.2    功能实现    94.2.1    数据变量定义    94.2.2    启动代理服务器    104.2.3    请求处理过程    114.2.4    请求响应    134.2.5    关闭服务器    154.2.6    控制主函数    155    测试结果    15结    论    17参考文献    18致    谢    19声    明    20 A Thesis Presented to the Department of English College of International StudiesAbstractMany people have expressed their appreciation of the colorful and attractive advertisement that appear in American magazines. They are attractive not only in color and design but also in the language they use that seems so persuasive that readers find themselves unable to resist the temptation. Are there some special linguistic techniques that make these advertisements so appealing and effective? This thesis aims at answering this question that has been puzzling so many people.In this paper, I will analyze advertising English from syntactic and lexical perspective and discuss how the language is played in advertising English. My analysis and discussion are based on Leech’s work “English in advertising”, which is quite complete and authoritative in this field. But three decades has passed since leech wrote his book and his study confined mainly to commercials. Besides my study is mainly on press advertising, so there must be some differences. I’ve collected some advertisements from some British and American magazines and newspapers published in the year of 1999 as my samples. Both quantitative and non-quantitative methods are used in my analysis, since it’s always the intuition that tells the investigators what are the significant categories to count and contrast. But occasionally, the results of some my frequency analysis will be used to back my statements about advertising English. Later, I will deal with some linguistic variations in advertisements resulting from different products, audience and aims. At last, I will analyze some of China’s English advertisements and make a few recommendations to improve China’s English advertisements. CONTENTS    字Introduction4Chapter OneSyntactic Feature of Advertising English.71.1 Imperative Sentences.71.2 Interrogative Sentences.81.3 Disjunctive Language.9 1.4 Split Sentences.10Chapter TwoLexical Feature of Advertising English.122.1 Verb.122.2 Adjective.132.3 Noun and Compound.16Chapter Three Language Play in Advertising English.193.1 Orthographic Violation.193.2 Alliteration.203.3 Figurative Language.21   3.4 Pun.223.5 Contradictions.22 3.6 Presupposition and Expectation.23Chapter FourSome Comments on Chinese Advertisements in English254.1 An Analysis of China’s English Advertisements.254.2 A few Recommendations to Improve China’s English Advertisements.27Conclusion30Bibliography.32 BibliographyOgiloy David,  1974,“How to Write Potent Copy”, Good year Co. New YorkOgiloy David, 1963,“Confession of an Advertising Man”, Atheneum Publishers, New YorkDon. L. E. Nilsen and Pace Alleen, “Language Play: An Introduction to Linguistics”, Newbury House Publishers, Massachusetts Leech. G. N, 1996,“English in Advertising”, Longman Publishing House, LondonHalliday, 1976, “The Language of Advertising”, Tarter PublisherR.Rossiter John and Larry Percy, 1989,“Advertising and Promotion Management”, McGraw-Hill Book Company, SingaporeStevens Paul, 1989 ,“Weasel Word”s, God’d Little Helpers, LondonFearon Robert, 1978 ,“Advertising That Works”, Probus Publishing Co., Chicago李中行,1986,广告英语,湖南教育出版社。刘云腾,谢文怡,1987,广告英语,上海交通大学出版社。王安平,1997,广告用语创作技巧,中国纺织出版社。 章振邦,1994,新编英语语法,上海译文出版社。周晓,周怡,1998,现代英语广告,上海外国语出版社。 消费者购买绿色食品影响因素分析(字)摘  要:随着我国人民生活水平的日益提高及农产品供需关系的转变,人们对农产品的需求已经开始朝着多元化和优质化的方向发展,集中表现为从过去对农产品数量的追求转向对农产品质量、卫生、安全方面的追求。我国的绿色食品事业在这样的大背景下应运而生。经过十几年的努力,已经获得了长足的发展。以问卷调查搜集的数据为基础,分析了当前我国城市居民绿色食品的消费意识、消费行为特征以及影响绿色食品消费行为的各种因素;指出我国城市居民已普遍接受绿色食品消费并愿意承担额外的费用,食品安全已经深入人心;并进一步建立了居民绿色食品购买行为决策模型;最后,就绿色食品的推广和普及提出了相关建议。 关键词:绿色食品 ;消费行为;绿色农产品;食品安全 Factors influencing on Green Food Purchasing Behavior of  Urban Consumers Abstract: With Chinas increasing standard of living and the changes in supply and demand of agricultural products,more and more people are concerned about the high quality and diversity of agricultural products, which can be manifested in that people now focus on the quality, hygiene and security of food rather than the quantity of it. Chinas green food business comes into being under such circumstances. After ten years of efforts,it has received a considerable development. Based on questionnaire data,This thesis analyses the consumer awareness, the characteristics of consumer behavior of current urban residents and various factors that affect the characteristics of consumer behavior of current urban residents and various factors that affect the consumer behavior of green food. It pointed out that Chinas urban residents have generally accepted green food as well as its extra charge and the thought of food safety has deeply rooted in people’s mind. Decision models of residents’ green food purchasing behavior is also gradually being established. At last, this article makes some suggestions on the popularization of green food.   Key words: Green food; Consumer behavior; Green agricultural products; Food safety 摘       要随着我国教育体制改革的深入进行,教育系统得到了前所未有的发展。校园正在逐步迈向管理信息现代化。但是,我国校园管理信息化水平还处在初级阶段,主要表现在对学生的交费管理、学生的档案管理还是采用原有的人工管理方式。这就造成工作效率低、误差大,也造成了人力、物力、财力资源的浪费。与此同时,学校还是培养国家栋梁之才的场所,无论是在教育,还是在管理上所面临的重要课题。在当今的时代,网络技术与计算机软件技术已经愈来愈广泛地应用到教育系统中各个方面。使用计算机不仅可以简化学校传统的管理模式,使学校管理人员能够方便地利用学校内部信息对学生档案、进行全面的管理,更重要的是利用计算机技术可以使校园管理规范化、制度化、数字化、提高管理水平、降低管理成本、减轻工作强度、提高工作效率,使学校以高效率运转。计算机技术在校园中应用顺应了我国的国情,实现了教育面向现代化,面向未来的指导思想,是校园管理走向现代化的有利武器系统主要功能有:学生交费管理:交费录入、交费情况查询、交费情况浏览与查询、学生交费情况分析、学生交费情况浏览与统计、交费数据报表浏览与打印。 目录第一章  前言 1第二章  关于Delphi 21.1Delphi基本概念介绍1.2面向对象编程的概念1.3 Delphi的数据库特性及功能简介1.4 Delphi的数据库特性1.5 Delphi可以访问的数据源(DataSource)16 Delphi数据库的体系结构第三章  系统设计与功能分析 53.1       系统目标设计3.2       开发设计思想3.3       系统功能分析3.4       系统模块设计第四章  数据库设计 8 4.1   数据库的需求分析4.2   数据库的概念结构设计4.3   数据库的逻辑结构设计第五章系统窗口的设计与功能实现14第六章 总结 32第七章  致  谢 34第八章  参考文献 35第九章  附录 36第十章  中英文对照 42 摘要:双铰接剪叉式升降台的设计是在原由的剪叉式升降台的基础上,运用现在的灵活性、安全性、经济性等指标;结构以能够满足灵活性要求较高的汽车维修需要为前提,通过不同型号和响应福建达到满足物流、汽车维修等性能要求。(毕业设计网 )通过对双铰接剪叉式升降台机构位置参数和动力参数的技术,结合具体实例,对机构中良种液压缸布置方式分析比较,并根据要求对液压传动系统个部分进行设计计算最终确定液压执行元件-液压缸,通过对叉杆的各项受力分析确定台板与叉杆的载荷要求,最终完成剪叉式液压升降台的设计要求。 关键字:升降台;剪叉式 ;液压 3.1明确设计要求 制定基本方案: 203.2制定液压系统的基本方案 203.2.1确定液压执行元件的形式 203.2.2 确定液压缸的类型22 简易仪表车床设计(含幻灯片ppt,论文说明书4500字,cad图纸)          摘    要金属切削机床是用切削的方法将金属毛坯加工成机器零件的机器,它是制造机器的机器,又称为“工作母机”或“工具机”。在现代机械制造工业中,金属切学机床是加工机器零件的主要设备,它所担负的工作量,约占机器总制造工作量的40%60%。机床的技术水平直接影响机械制造工业的产品质量和劳动生产率。仪表机床具有价格便宜,重量轻,占地小,操作维护简便方便的特点,仪表机床仍然具有很高的市场价值。 关键词:仪表机床AbstractMetal-cutting machine tools is the method of cutting metal machine parts into a rough processing machine, it is a machine manufacturing machines, also known as "machine tool" or "machine tools." Metal-cutting machine tools is the method of cutting metal machine parts into a rough processing machine, it is a machine manufacturing machines, also known as "machine tool" or "machine tools."                     In modern machine building industry, metal cutting machine learning is the main processing equipment, machine parts, it has to assume the workload, accounting for the total manufacturing work machines 40% 60%. The skill level of machine tool directly affects the mechanical manufacturing industry product quality and labor productivity. Instrumentation machine with cheap, light weight, occupies an area of small, simple and convenient operation and maintenance features, instrumentation machine still has a high market value.      Key words: Instrument Machine Tool仪表机床的主要规格参数1. 仪表机床的配套功率:0.55KW 2. 最大工件回转直径50mm3. 最大加工长度120m 随着IT业的迅猛发展,移动更是生机勃勃,现已经历了三代发展历程(图1),每一代的发展都基于技术的突破和观念的创新。第一代移动从发明蜂窝概念开始,通过频率复用增大了系统容量,实现了语音移动通信;第二代移动通信用数字技术取代模拟技术,增加了数据业务;第三代移动通信的频带利用率更高,每用户比特速率更大,并使移动通信与Internet进一步融合,为移动中的人们提供广泛的基于IP的多媒体业务。CDMA正是因为具有第三代移动通信的优点广受消费者的青睐,发展迅速。无线通信在未来的通信中起越来越重要的作用,CDMA将成为二十一世纪主要的无线接入技术。(毕业设计网 ) 系统概述无线桌面电话CDMA是在CDMA手机系统的基础上增加了电话管理功能实现的。它采用世界先进的CDMA技术制造,具有保密性强、通话清晰、无辐射危害、绿色环保等特点。话机采用机卡分离技术,实现无线接入方式,为用户提供方便、灵活的通信服务。其主要技术指标如下:&#; 一般性能指标&#; 工作频率    发射 824848MHZ                接收 869893MHZ &#; 信道间隔    1.25MHZ&#; 调制方式    接收QPSK,发射OQPSK&#; 工作电压    6V直流电压&#; 通话时间    34小时(备用电池)&#; 待机时间    100120小时(备用电池)&#; 工作温度    0+50摄氏度&#; 发射性能指标                 &#; 最大输出功率   1.0W&#; 频率误差       300HZ&#; 接收性能指标&#; 参考灵敏度     -104dbm&#; 误帧率         <0.5%系统原理    无线桌面电话CDMA是基于CDMA手机系统原理和话机管理系统原理设计而成的无线商话。系统的设计包括硬件和软件。硬件设计以CDMA通讯接口模块为核心,并结合相应的电源电路、语音电路、键盘电路和液晶显示电路等外围电路完成的。软件的设计主要包括通信协议的设计和电话管理功能的实现,特别是网管功能的设计。本人在设计过程中主要负责硬件设计。 硬件设计所采用的核心通讯模块是国内唯一与PHILIPS 公司合作开发CDMA项目的HOLLEY公司提供的。该CDMA通讯接口模块由基带处理和射频电路组成,并提供LCD液晶显示接口、键盘接口、UIM卡控制接口、RS232通信接口、通用输入/输出口等多种接口。 多种即插即用接口的提供,大大方便了用户的连接应用。我们以该通讯模块为核心,设计相应的外围电路,为提高系统的稳定性和可靠性,电源电路设计和语音电路的设计又是尤为重要的。蜂窝电话设计需要低压差、低噪声、高PSRR、低静态电流(Iq)、低成本的线性稳压器,并要求这些线性稳压器能够提供稳定的输出,输出端允许采用超小型电容器。因此我们在设计中采用二次稳压,并采用低压差的线性稳压器278R33来实现,同时在设计中还采用了备用电池,以保证在突然出现断电的情况下保证系统的稳定。语音电路的处理是系统设计的重要组成部分,因为语音的好坏直接影响通话质量,因此我们在设计中采用了LM4871语音处理芯片并选择合适的电容来实现。系统硬件设计的关键是外围电路的设计要与CDMA通讯接口模块相匹配,具体设计见第3章。(毕业设计网 ) 目录1 绪  论1.1  课题背景1.2  CDMA的概述1.2.1  CDMA的特点 1.2.2  CDMA的关键技术1.2.3  CDMA的发展方向1.2.4  国内外CDMA的应用2 硬件电路的实现2.1  概述2.1.1  系统原理2.1.2  系统框图2.1.3  系统功能2.2  CDMA通讯接口模块2.2.1  模块概述2.2.2  性能指标&#; 基本功能&#; 性能要求2.2.3 模块接口描述&#; 模块硬件图   硬件框图   模块接口定义&#; 通用接口             电源接口             LCD接口             键盘接口             串行通信接口             UIM 卡控制接口             通用输入/输出口             PDM信号输出口              模拟量输入接口             Buzzer 信号接口             Boot 信号接口             Reset 信号接口          &n

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论