📅  最后修改于: 2022-03-11 14:56:19.028000             🧑  作者: Mango
代码示例1
if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &(int){1}, sizeof(int)) < 0)
error("setsockopt(SO_REUSEADDR) failed");