SO_REUSEPORT -- available in linux ?



Hi,

Have a simple socket program running in linux where a snippet has :

if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(int)) ==
-1) {
perror("setsockopt");
exit(1);
}


This fails to compile ; the error being

SO_REUSEPORT' undeclared (first use in this function)

Is there something wrong here ?

Thanks in advance.

.



Relevant Pages