listen is failing.After debugging it thoroughly it has been observed that server is unable to listen on port 502 .
why server stopps listening on this port and sometimes its working.I did not face this problem if I use port other than 502.
so whats special with this port? and how to make sure my application should always get this port all the time.
Note :- I am running my application as root user.
Also I want to know ways to forcefully deallocate and allocate 502 port to my application.
This sounds to me like you have another MODBUS application either on your master or slave that is occasionally colliding with your application for the port.
The clue is that you intentionally moved the one you know about to another port and it works fine. The unknown one is still using the standard port 502 and will no longer collide.
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "libmodbus".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse libmodbus+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse libmodbus+unsubscribe@googlegroups.com.
--
--