关于Socket...
http://www.beej.us/guide/bgnet/output/html/multipage/sendman.html
These functions send data to a socket. Generally speaking, send() is used for TCP SOCK_STREAM connected sockets, and sendto() is used for UDPSOCK_DGRAM unconnected datagram sockets. With the unconnected sockets, you must specify the destination of a packet each time you send one, and that's why the last parameters of sendto() define where the packet is going.
浙公网安备 33010602011771号