Motivation: The NetworkFramework directly supports the concept of allowLocalEndPointReuse. Currently to get through the nio system, this is mapped to the SO_REUSEADDR option. Now there is a shorthand option for this, it is sad to map from allowLocalEndPointReuse to SO_REUSEADDR and back again. Modifications: Add a new NIOTS channel option for this setting. Set the underlying based on any of new setting, reuseAddr or reusePort. Add a override to interpret the shorthand option directly into the new option. Add shorthand options for client with tests of equivalence to long options. Result: Behaviour is identical but we can feel happier that the option mapping is less confusing. |
||
|---|---|---|
| .. | ||
| NIOTSHTTPClient | ||
| NIOTSHTTPServer | ||
| NIOTransportServices | ||