广播服务器搭建: #include <myhead.h> #define PORT 8888 #define IP "192.168.124.255" int main(int argc, const char *argv[]) { //创建流套接字 int sfd = socket(AF_INET,SOCK_DGRAM,0); if(sfd < 0){ fprintf(stderr,"line:%d ",__LINE__); perror("socket"); return -1; } pri