ReactorFD.this

Constructor from existing mecca.lib.FD

  1. this(int fd, bool alreadyNonBlocking)
    struct ReactorFD
    @safe @nogc
    this
    (
    int fd
    ,
    bool alreadyNonBlocking = false
    )
  2. this(FD fd, bool alreadyNonBlocking)

Parameters

fd int

bare OS fd. Ownership is handed to the ReactorFD.

alreadyNonBlocking bool

whether the OS fd has NONBLOCKING already set on it. Setting to true saves a call to fcntl, but will hang the reactor in some cases.

Meta