[Applet] 总结java_socket编程

[复制链接]
发表于 2022-10-4 11:04:13
总结javasocket编程一,网络编程中两个首要的问题一个是如何精确的定位网络上一台或多台主机,另一个即是找到主机后如何牢靠高效的进行数据传输。在TCP/IP协议中IP层首要担任网络主机的定位,数据传输的路由,由IP地址可以仅有地断定Internet上的一台主机。而TCP层则提供面向使用的牢靠(tcp)的或非牢靠(UDP)的数据传输机制,这是网络编程的首要目标,通常不需求关怀IP层是如何管理数据的。现在较为盛行的网络编程模型是客户机/服务器(C/S)结构。即通信两边一方作为服务器等候客户提出恳求并予以响应。客户则在需求服务时向服务器提出申请。服务器通常作为看护进程一直运行,监听网络端口,一旦有客户恳求,就会启动一个服务进程来响应当客户,一起自己持续监听服务端口,使后来的客户也能及时得到服务。
总结java_socket编程.doc

(To summarize java socket programming, one of the two most important problems in network programming is how to accurately locate one or more hosts on the network, and the other is how to reliably and efficiently transmit data after finding hosts. In the TCP/IP protocol, the IP layer primarily serves as the location of the network host, and the route of data transmission. Only one host on the Internet can be determined by the IP address. The TCP layer provides a reliable (tcp) or non reliable (UDP) data transmission mechanism for use, which is the primary goal of network programming, and usually does not need to care about how the IP layer manages data. The prevailing network programming model is the client/server (C/S) architecture. That is, one side of the communication side acts as a server to wait for the client's request and response. Customers apply to the server when they need services. The server usually runs as a guard process all the time, listening to the network port. Once a customer requests, it will start a service process to respond to the customer, and together they will continue to listen to the service port, so that subsequent customers can get services in time.
Summarize java_ Socket Programming.doc)

[下载]11041381899.rar




上一篇:轻松学用Java 2.part3
下一篇:Java正则表达式的深入浅出详解

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表