In java how to set SO_EXCLUSIVEADDRUSE flag to serversocket?
Am not able to find the API call for this in ServerSocket API.
I can set SO_TIMEOUT using setSoTimeout method. But how to set SO_EXCLUSIVEADDRUSE?
In java how to set SO_EXCLUSIVEADDRUSE flag to serversocket?
Am not able to find the API call for this in ServerSocket API.
I can set SO_TIMEOUT using setSoTimeout method. But how to set SO_EXCLUSIVEADDRUSE?
If there isn't an API for it you can't do it.
This option only appears to exist on Windows: it would be pointless implenenting it in a cross-platform language. It seems to be a compensation for a broken implementation of SO_REUSEADDR. You don't need it on platforms without that problem.