Recently, I am implementing TCP server/client on AM243X LP.
I try to set the client socket to be SO_REUSEADDR:
int opt = 1;
if (lwip_setsockopt(sockfd, SOL_SOCKET,
SO_REUSEADDR | SO_REUSEPORT
, &opt, sizeof(opt)) < 0)
{
return -1;
}
And it always failed.
Could you indicate if I have done anything wrong?