Thread overview | ||||||
---|---|---|---|---|---|---|
|
December 21, 2016 Socket missing option: SO_REUSEPORT | ||||
---|---|---|---|---|
| ||||
Just check the socket code and there is a small feature missing: >enum SocketOption: int >{ > DEBUG = SO_DEBUG, /// Record debugging information > BROADCAST = SO_BROADCAST, /// Allow transmission of broadcast messages > REUSEADDR = SO_REUSEADDR, /// Allow local reuse of address There needs to be added: > REUSEPORT = SO_REUSEPORT, /// Allow local reuse of the port I don't think this needs weeks of discussion ;) |
December 21, 2016 Re: Socket missing option: SO_REUSEPORT | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjiro | On Wednesday, 21 December 2016 at 13:01:53 UTC, Benjiro wrote: > I don't think this needs weeks of discussion ;) No discussion needed at all. You could simply file an issue here: https://issues.dlang.org/, or submit a PR. |
December 21, 2016 Re: Socket missing option: SO_REUSEPORT | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjiro | On Wednesday, 21 December 2016 at 13:01:53 UTC, Benjiro wrote:
> Just check the socket code and there is a small feature missing:
>
>>enum SocketOption: int
>>{
>> DEBUG = SO_DEBUG, /// Record debugging information
>> BROADCAST = SO_BROADCAST, /// Allow transmission of broadcast messages
>> REUSEADDR = SO_REUSEADDR, /// Allow local reuse of address
>
>
> There needs to be added:
>
>> REUSEPORT = SO_REUSEPORT, /// Allow local reuse of the port
>
>
> I don't think this needs weeks of discussion ;)
SO_REUSEPORT is not supported on Windows.
|
May 21, 2017 Re: Socket missing option: SO_REUSEPORT | ||||
---|---|---|---|---|
| ||||
Posted in reply to Damian | On Wednesday, 21 December 2016 at 16:49:53 UTC, Damian wrote: > SO_REUSEPORT is not supported on Windows. Is is supported on linux. On Windows the behavior of SO_REUSEPORT is included in SO_REUSEADDR. I submitted an issue to get this fixed for Linux. https://issues.dlang.org/show_bug.cgi?id=17416 |
Copyright © 1999-2021 by the D Language Foundation