Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Simple socket communication
no vote
Stream sockets (SOCK_STREAM), datagram sockets (SOCK_DGRAM) and raw sockets. 1. streaming sockets to provide connection-oriented, reliable data transmission services, data bytes, in order to send and receive, to ensure no loss in transmission, without redundancy. TCP protocol supports the socket. 2. datagram sockets provide connectionless service, send and receive unordered data, and cannot guarantee the accuracy of data arrive. UDP protocol supports the socket. 3. raw sockets raw sockets are mainly used for some protocols developed, you can compare the underlying operation. It is powerful, but without the above two kinds of sockets are easy to use, General program also involves raw sockets.
liyongouxin
2016-08-23
0
1
No more~