vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Function EventDriverSockets.isValid

Determines whether the given socket handle is valid.

abstract bool isValid (
  SocketFD handle
) nothrow @nogc @safe const;

A handle that is invalid will result in no operations being carried out when used. In particular addRef/releaseRef will have no effect, but can safely be called and I/O operations will result in IOStatus.invalidHandle.

A valid handle gets invalid when either the reference count drops to zero, or after the socket was explicitly closed.

Authors
Copyright
License