swift-nio-transport-services/Sources
Peter Adams cd49a10c4f
Directly support the allowLocalEndpointReuse channel option (#82)
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.
2020-07-01 14:51:31 +01:00
..
NIOTSHTTPClient fix license headers (#73) 2020-03-25 15:43:40 +00:00
NIOTSHTTPServer fix license headers (#73) 2020-03-25 15:43:40 +00:00
NIOTransportServices Directly support the allowLocalEndpointReuse channel option (#82) 2020-07-01 14:51:31 +01:00