Socket missing option: SO_REUSEPORT

Damian via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 21 08:49:53 PST 2016


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.



More information about the Digitalmars-d mailing list