www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Socket missing option: SO_REUSEPORT

reply Benjiro <benjiro benjiro.com> writes:
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 ;)
Dec 21 2016
next sibling parent Madaz Hill <mhmhmh mhmh.mh> writes:
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.
Dec 21 2016
prev sibling parent reply Damian <damianroyday gmail.com> writes:
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.
Dec 21 2016
parent Kevin Brogan <kevin brogan.ca> writes:
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
May 21