We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0296d7a commit e57b16fCopy full SHA for e57b16f
Java基础/网络请求相关内容总结.md
@@ -72,7 +72,8 @@
72
- 通过DatagramPacke关闭的方法,获取发送数据包中的信息;
73
- 关闭DatagramSocket和DatagramPacket服务。
74
- UDP协议的Demo(必须掌握):
75
- - 发送端:
+ - 发送端:
76
+
77
```java
78
class UDPSend {
79
public static void main(String[] args) throws Exception {
@@ -85,7 +86,8 @@
85
86
}
87
88
```
- - 接收端
89
+ - 接收端
90
91
92
class UDPRece {
93
@@ -120,6 +122,7 @@
120
122
121
123
- TCP/IP协议的一个Demo(必须要掌握!):
124
- 客户端:
125
126
127
class TCPClient {
128
public static void main(String[] args) {
@@ -131,6 +134,7 @@
131
134
132
135
133
136
- 服务端:
137
138
139
class TCPServer {
140
0 commit comments