recvfrom获取对端地址 ret = recvfrom(sock, recvbuf, sizeof(recvbuf), 0, (struct sockaddr *)&cliaddr, &clilen ); if(ret <0) { printf("recvfrom err"); return -1; }... linux 2023-08-13 40 点赞 0 评论 60 浏览