http://blog.csdn.net/guanghua2_0beta/article/details/52483916 sendto() 向广播地址发包返回errno 13, Permission denied错误 sendto()向广播地址发包返回errno 13, Permission denied错误 原因:没有设置socket的SO_BROADCAST属性.特别注意:SO_BROADCAST属性要单独设置,一般习惯setsockopt时同时设置多个属性,例如SO_BROADCAST|…