UDP编程
UdpClient
1 | from socket import * |
Udpserver
1 | from socket import * |
TCP编程
TcpClient
1 | from socket import * |
TcpServer
1 | from socket import * |
区别
TCP需要在传输前建立连接,传输后关闭连接
UdpClient
1 | from socket import * |
Udpserver
1 | from socket import * |
TcpClient
1 | from socket import * |
TcpServer
1 | from socket import * |
TCP需要在传输前建立连接,传输后关闭连接