Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
QT to achieve a simple UDP transmission
no vote
Application background UDP is lightweight, unreliable, for data - oriented, non - connected protocols, and can also be associated with reliability is not very important in the case of.Programming in the Qt platform, to achieve a simple UDP message transfer to the local host.Qudpsocket classes used to send and receive UDP packets, the socket here in simple terms is an IP address and a port number, which IP address developed a host in the network, and port number developed on the host network program, so the use of socket can realize network between two application communication.
lavender0111
2016-08-23
0
1
QT to achieve TCP file transfer
4.0
Application background TCP transmission control protocol is a network protocol for data transmission, and several Internet Protocols (HTTP, FTP) are all based on TCP protocol. TCP is a reliable transport protocol for data flow and connection.In the QT platform, the use of QTcpSocket to achieve POP3, SMTP and NNTP and other standard network protocols, but also can achieve a custom network protocol. Different from the QUdpSocket data transmission, QTcpSocket transmission is continuous data flow, suitable for continuous data. TCP programming is generally divided into client and server side, that is, the so-called C/S model.Before any data is transferred, an TCP must be built to connect to the remote host and port.
lavender0111
2016-08-23
5
1
No more~