Greetings. In my mpi programs, some socket interface(tcp) is needed. As
the system`s archetecture is designed, I have to close server side
first. Then the error message "<font size="2">Bind: Address Already in Use</font>"
is always meet. I find that using the function setsockopt() to
set SO_REUSEADDR parameter is the only way to avoid this problem.
But with some experiments I find this way can't work in MPI programs
while work good in socket raw examples. Is that because MPI reset the socket option when MPI_Finalize is called?<br>
<br>
Any suggestions will be greatly appreciated. <br>
<br>-- <br>Best regards!<br> <br>Roy Ma<br> <br><a href="mailto:mzcroy@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><br>
</a>