Use SendTo to send a single packet of information over the network. Note that information in the packet is not checked for length, completeness, and such, which occurs at a higher level.
其中的const sockaddr_in &ToAddr我的理解是服务器的地址,sockaddr_in是结构体,假如现在服务器的IP为"10.10.224.30",象我原来写的那样"struct sockaddr_in host"而并没有具体定义,sendto函数有怎么知道将消息发送到那里呢???
请高手指教!!!!!!