文件名称:TCP
介绍说明--下载内容均来自于网络,请自行研究使用
服务器和客户机端,即建立所谓的客户机/服务器编程模式。在服务器端必须先建立一个ServerSocket对象,然后等待客户机端的访问。而在客户机端,则是建立一个Socket对象直接跟服务器端连接,如果连接建立成功,则服务器端便会产生一个Socket对象,然后我们就可以利用这个Socket对象跟客户机端的Socket对象沟通了。此时在服务器和客户机之间建立了一条可靠连接,客户机和服务器可以在这条连接上可靠的传送数据。客户机发出请求,服务器监听来自客户机的请求,并为客户机提供相应的服务。 -Server and client side, namely the establishment of the so-called client/server programming model. The server side must be the creation of a ServerSocket object, and then wait for the client-side visit. In client-side, it is to create a Socket object to connect directly with the server-side, if the connection is established successfully, then the server will create a Socket object, and then we can take advantage of this Socket object with client-side of the Socket object to communicate. At this time in between server and client to establish a reliable connection, client and server can be connected to the reliable transmission of data. Client request, the server listening to requests from the client and the client to provide the corresponding services.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TCPClient.java
TCPServer.java
TCPServer.java