Network failure error categories.
enum NetErrorCode
Detailed description
enum NetErrorCode
Network failure error categories.
This error codes define macro-categories of network errors that have appened. Details are available by reading the system specific net-error.
The NetError.code property assumes one of this values:
- generic: A generic failure prevented the network layer to work altogether. I.e. it was not possible to initialize the network layer
- resolv: An error happened while trying to resolve a network address; possibly, the name resolution service was not available or failed altogether.
- create: It was impossible to create the socket.
- send: The network had an error while trying to send data.
- receive: The network had an error while receiving data from a remote host.
- close: An error was detected while closing the socket. Either the socket could not be closed (i.e. because it was already invalid) or the close sequence was disrupted by a network failure.
- bind: The required address could not be allocated by the calling process. Either the address is already busy or the bind operation required privileges not owned by the process.
- accept: The network system failed while accepting an incoming connection. This usually means that the accepting thread has become unavailable.