In my code I have to convert the following UNIX code to its winsock
equivalent code...
if(setsockopt(s ockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) ==
-1)
{
perror("setsock opt error");
}
In the above code perror is not an issue. But how to fix setsockopt()
function !!!!!
equivalent code...
if(setsockopt(s ockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) ==
-1)
{
perror("setsock opt error");
}
In the above code perror is not an issue. But how to fix setsockopt()
function !!!!!
Comment