-------
Android training and Java training. We look forward to communicating with you! ----------
- Network Programming is actually socket-based programming, which requires several pieces of data; 1) ip address; 2) port number; 3) transmission protocol;
- The network programming model is TCP/IP;
- Introduce the Differences Between TCP and UDP:
- UDP encapsulates data and source and target data into data packets without establishing a connection.
- The maximum size of each UDP datagram is 64 KB.
- Because UDP is not connected, it is an unreliable protocol. Because there is no connection, the speed is fast.
- UDP is generally used in video conferencing and chat software .................
- TCP must establish a connection, thus forming a channel for data transmission.
- TCP implements a large amount of data transmission in the connection.
- TCP completes the connection through three handshakes, which is a reliable protocol, because the connection efficiency will be slightly lower.
- TCP is used to download online movies .............