But I have an alternate implementation of bind() that will allow me to bind to reserved ports, and I'd like to use that without doing something as intrusive as replacing the ::bind() calls in SocketImpl.
I've tried several variants on this...
Code: Select all
// Set up sa here
... and they either fail with "Invalid Socket" or end up re-initialising the socket, so the final file descriptor is different to the one I bound. I've tried inheriting from SecureServerSocket/SecureServerSocketImpl, with little success.
Before I dig deeper, is there an obvious trick to do this that I'm missing?