# dz_java_tcp20200603 **Repository Path**: Instinctb/dz_java_tcp20200603 ## Basic Information - **Project Name**: dz_java_tcp20200603 - **Description**: TCP网络编程 - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2026-01-19 - **Last Updated**: 2026-01-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dz_java_tcp20200603 #### 介绍 TCP网络编程 #### 课堂笔记 1、tcp网络编程 ``adil `` 1.1 tcp协议概念 tcp是面向连接的可靠的; tcp三次握手建立连接;四次握手释放连接; 1.2 tcp网络编程 使用Socket作为客户端与服务器端ServerSocket 通过ip地址+端口号的方式建立连接; 使用输入输出流进行信息交互,如果要传输对象流则需要满足序列化的要求; tcp编程是要先建立连接通道,然后在传输信息; ``over`` 2、udp编程 ``aidl`` 2.1 udp协议 upd非面向连接的不可靠的; udp传输效率比tcp高,但是可靠性比tcp低; 2.2 udp网络编程 客户端和服务器端都是使用DatagramSocket进行数据信息的接收与发送; 发送和接收的信息都存放在DatagramPacket中,数据包中存放了连接服务器的ip地址和端口号; udp是将传输信息放在数据包中,直接发送到网络上;不需要连接连接通道; ``over`` #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)