- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
计算机论文(Computer paper)
计算机论文(Computer paper)
This paper describes the use of JAVA programming language to write network communication programs based on client / server applications, and discusses SOCKET mechanisms, input and output streams, and program implementation code.
Keywords JAVA, network, SOCKET, APPLET
The system structure on the network for client / server mode, the server is responsible for data transmission and image storage, maintenance, management and operation, sending demand and display client is responsible for man-machine interface data recovery.
Heres how to use JAVA for network programming:
1) because the client establishes the connection with the server through IE, the client uses Applet, and the server uses Application;
2) the server should be set to multiple threads to answer requests from multiple clients;
3) both ends communicate using the SOCKET mechanism.
1 Java input / output stream concept:
The filtered streams DataInputStream and DataOutputStream also implement interfaces DataInput and DataOutput, as well as subclasses of FilterInputStream and FilterOutputStream. The methods defined in the DataInput interface mainly includes the basic types of data read from a stream, read a line, or read the specified length in bytes, such as readBoolean (readInt) (readLine), readFully (), (). The methods defined in the DataOutput interface is an array of bytes written in basic types of data to flow or write to a certain length, such as writeChar (writeDouble), (DataInputStream) from the basic types of data connected to the input stream read machine independent, input mode to achieve an independent of the specific platform; DataInputStream you can write to the output of the basic types of connected data flow.
2 Socket mechanism
Socket is designed for the client / server model, and the two programs on the network exchange data through a two-way communication link. One end of the two-way link is called a Socket. Socket is commonly used to connect clients and service parties. T
您可能关注的文档
- 职业测试(Vocational test).doc
- 聋儿早期干预社区家庭康复模式的建立(The establishment of deaf children early intervention community family rehabilitation mode).doc
- 耽美经典语句(Tanbi classic statement).doc
- 职务分析样本——财务类(Job analysis sample - Financial).doc
- 职业类英语词汇(Vocational English Vocabulary).doc
- 职场如何说话(How does the workplace speak).doc
- 职场杂谈房子向左 事业向右(Workplace gossip the house left right career).doc
- 职场白领如何在竞争中脱颖而出(How do white-collar workers stand out in the competition).doc
- 职场白骨精抗氧化全攻略(Workplace Baigujing antioxidant Raiders).doc
- 职工工伤与职业病致残程度鉴定(Worker injury and occupational disability degree appraisal).doc
- 计算机运用(Computer application).doc
- 认识克与千克(Recognize grams and kilograms).doc
- 计量技术操盘策略(Measurement technology trader strategy).doc
- 计量学复习内容(Review of Metrology).doc
- 认识克和千克(Know grams and kilograms).doc
- 认识分数8-4(Know score 8-4).doc
- 认识广州从萝卜牛杂开始(From the start to know Guangzhou beef offal radish).doc
- 让1岁宝宝心灵手巧的8个小游戏(Make 8 small game 1 years old baby ingenuity).doc
- 让人感动的英语(Moving English).doc
- 让人震撼的庖丁解牛式电动车销售技巧(Shocking Paodingjieniu type electric vehicle sales skills).doc
最近下载
- 派出所校园防欺凌方案.docx VIP
- 汽车钢板弹簧后悬设计答辩--公开课件设计.ppt VIP
- 义务教育版(2024)七年级全一册信息科技 第9课 数据传输有新意 教案.docx VIP
- 7氯丁橡胶总结.ppt VIP
- 华为HCIA-GaussDB GaussDB应用开发 H13-911考试题库-下(判断、填空题).docx VIP
- DB37T5072-2016山东建筑工程建筑结构施工技术资料-全套资料表格word.docx VIP
- DB37T5072-2016山东建筑工程建筑结构施工技术资料-全套资料表格word.docx VIP
- DB37T5072_2016山东建筑工程建筑结构施工技术资料_[全套]资料表格word.docx VIP
- 一年级拼音书写四线三格.docx VIP
- 军民航防相撞课件.pptx VIP
文档评论(0)