第 1 章 简介....................................................................................................................................3 1.1 计算机网络,分组报文和协议........................................................................................3 1.2 关于地址............................................................................................................................6 1.3 关于名字............................................................................................................................8 1.4 客户端和服务器................................................................................................................8 1.5 什么是套接字....................................................................................................................9 1.6 练习..................................................................................................................................10 第 2 章 基本套接字......................................................................................................................10 2.1 套接字地址......................................................................................................................10 2.2 TCP套接字.......................................................................................................................17 2.2.1 TCP客户端............................................................................................................17 2.2.2 TCP服务器端........................................................................................................22 2.2.3 输入输出流...........................................................................................................26 2.3 UDP套接字......................................................................................................................28 2.3.1 DatagramPacket类...............................................................................................28 2.3.2 UDP客户端.......................................................
2021-08-02 13:12:20 1.83MB JAVA网络编程,Socket编程
1