ProtectedblockingProtected OptionaldetachRemove event listeners from the current transport.
ProtectedepochProtected OptionalfailureProtected OptionaltransportNode listener transport sharing the base-class lifecycle.
Static ReadonlyAnyLet the system assign an available port when binding.
Static ReadonlyStatusSocket operation status enumeration.
Static ReadonlyTypeSocket transport protocol enumeration.
Hand the next connection to socket; blocking mode waits asynchronously, while nonblocking mode returns NotReady when no connection is available.
socketProtectedallocateAllocate a Server for the listener without creating a client transport or implicitly listening on a port.
ProtectedawaitcheckgenerationProtectedawaitWait for a write or generation cancellation; closing does not depend on whether the underlying write callback fires.
completiongenerationProtectedchangedStop listening and close connections not yet handled by accept.
ProtectedcreateAllocate a transport for the given address family without implicitly connecting or binding a port.
addressTypeOptionalAdopt a Node transport and close the old one; do not adopt raw file descriptors.
handleReturn the latest underlying error, or undefined if none is recorded.
Return the listening port, or 0 when not listening.
ProtectedgetProvide subclasses with the underlying Node transport, or undefined if not yet created.
ProtectedgetReport receive readiness when the accept queue is not empty.
maskProtectedisReturn the listening state; derived classes may extend this.
Return whether blocking semantics use asynchronous waits.
Bind and listen asynchronously; port 0 requests an automatically assigned port. Bind all IPv4 interfaces by default.
portaddressProtectedonClear connections from the previous generation that were not accepted.
ProtectedonSet up the accept queue and listening state, supporting adoption of an already-listening Server.
Set whether to wait asynchronously for readability/writability. When false, return NotReady or Partial according to current queue state.
blockingProtectedvalidateOnly adopt Node Server instances for this listener.
handleReadonly[socketExpose overridable liveness state to Selector.
Expose overridable readiness conditions to Selector.
mask
Listen for TCP connections and hand them to TcpSocket through accept.