I saw errors EADDRNOTAVAILin calls connect(). I dig deeper that socket names are executed with addresses zero . See where both calls were successful: -
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&y, sizeof(y));
bind(s, (struct sockaddr *)lockaddr, sizeof(rtinetaddr_tp));
Where
lockaddr={.sin_family=2, .sin_port=0, .sin_addr={.s_addr=0}, .sin_zero=""}
This , I found on the RH website, and also I have the same core.
My question is, what if I delete the execution of any bind()client-side applications? Will this be a quick cure OR lead to any disaster?
In another way, I run examples of programs without binding on the client. But the application I'm talking about sets up hundreds of connections. So what could happen in the worst case?
source
share