Name
SPVM::Sys::Socket::Errno - Socket Error Numbers
Description
The Sys::Socket::Errno class in SPVM has methods to get socket error numbers.
Usage
use Sys::Socket::Errno;
my $errno = Sys::Socket::Errno->errno;
my $strerror = Sys::Socket::Errno->strerror($errno);
Class Methods
errno
static method errno : int ();
Returns errno
related to sockets in a portable way.
strerror
static method strerror : string ($errno : int, $length : int = 0);
Returns strerror
related to sockets in a portable way given enough length $max_length to hold the error message..
If $length is 0, an appropriate default value is set.
EINTR
static method EINTR : int ();
Calls the WSAEINTR method in the Errno class in Windows, or the EINTR method in the Errno class in other OSs, and returns its return value.
EBADF
static method EBADF : int ();
Calls the WSAEBADF method in the Errno class in Windows, or the EBADF method in the Errno class in other OSs, and returns its return value.
EACCES
static method EACCES : int ();
Calls the WSAEACCES method in the Errno class in Windows, or the EACCES method in the Errno class in other OSs, and returns its return value.
EFAULT
static method EFAULT : int ();
Calls the WSAEFAULT method in the Errno class in Windows, or the EFAULT method in the Errno class in other OSs, and returns its return value.
EINVAL
static method EINVAL : int ();
Calls the WSAEINVAL method in the Errno class in Windows, or the EINVAL method in the Errno class in other OSs, and returns its return value.
EMFILE
static method EMFILE : int ();
Calls the WSAEMFILE method in the Errno class in Windows, or the EMFILE method in the Errno class in other OSs, and returns its return value.
EWOULDBLOCK
static method EWOULDBLOCK : int ();
Calls the WSAEWOULDBLOCK method in the Errno class in Windows, or the EWOULDBLOCK method in the Errno class in other OSs, and returns its return value.
EINPROGRESS
static method EINPROGRESS : int ();
Calls the WSAEINPROGRESS method in the Errno class in Windows, or the EINPROGRESS method in the Errno class in other OSs, and returns its return value.
EALREADY
static method EALREADY : int ();
Calls the WSAEALREADY method in the Errno class in Windows, or the EALREADY method in the Errno class in other OSs, and returns its return value.
ENOTSOCK
static method ENOTSOCK : int ();
Calls the WSAENOTSOCK method in the Errno class in Windows, or the ENOTSOCK method in the Errno class in other OSs, and returns its return value.
EDESTADDRREQ
static method EDESTADDRREQ : int ();
Calls the WSAEDESTADDRREQ method in the Errno class in Windows, or the EDESTADDRREQ method in the Errno class in other OSs, and returns its return value.
EMSGSIZE
static method EMSGSIZE : int ();
Calls the WSAEMSGSIZE method in the Errno class in Windows, or the EMSGSIZE method in the Errno class in other OSs, and returns its return value.
EPROTOTYPE
static method EPROTOTYPE : int ();
Calls the WSAEPROTOTYPE method in the Errno class in Windows, or the EPROTOTYPE method in the Errno class in other OSs, and returns its return value.
ENOPROTOOPT
static method ENOPROTOOPT : int ();
Calls the WSAENOPROTOOPT method in the Errno class in Windows, or the ENOPROTOOPT method in the Errno class in other OSs, and returns its return value.
EPROTONOSUPPORT
static method EPROTONOSUPPORT : int ();
Calls the WSAEPROTONOSUPPORT method in the Errno class in Windows, or the EPROTONOSUPPORT method in the Errno class in other OSs, and returns its return value.
ESOCKTNOSUPPORT
static method ESOCKTNOSUPPORT : int ();
Calls the WSAESOCKTNOSUPPORT method in the Errno class in Windows, or the ESOCKTNOSUPPORT method in the Errno class in other OSs, and returns its return value.
EOPNOTSUPP
static method EOPNOTSUPP : int ();
Calls the WSAEOPNOTSUPP method in the Errno class in Windows, or the EOPNOTSUPP method in the Errno class in other OSs, and returns its return value.
EPFNOSUPPORT
static method EPFNOSUPPORT : int ();
Calls the WSAEPFNOSUPPORT method in the Errno class in Windows, or the EPFNOSUPPORT method in the Errno class in other OSs, and returns its return value.
EAFNOSUPPORT
static method EAFNOSUPPORT : int ();
Calls the WSAEAFNOSUPPORT method in the Errno class in Windows, or the EAFNOSUPPORT method in the Errno class in other OSs, and returns its return value.
EADDRINUSE
static method EADDRINUSE : int ();
Calls the WSAEADDRINUSE method in the Errno class in Windows, or the EADDRINUSE method in the Errno class in other OSs, and returns its return value.
EADDRNOTAVAIL
static method EADDRNOTAVAIL : int ();
Calls the WSAEADDRNOTAVAIL method in the Errno class in Windows, or the EADDRNOTAVAIL method in the Errno class in other OSs, and returns its return value.
ENETDOWN
static method ENETDOWN : int ();
Calls the WSAENETDOWN method in the Errno class in Windows, or the ENETDOWN method in the Errno class in other OSs, and returns its return value.
ENETUNREACH
static method ENETUNREACH : int ();
Calls the WSAENETUNREACH method in the Errno class in Windows, or the ENETUNREACH method in the Errno class in other OSs, and returns its return value.
ENETRESET
static method ENETRESET : int ();
Calls the WSAENETRESET method in the Errno class in Windows, or the ENETRESET method in the Errno class in other OSs, and returns its return value.
ECONNABORTED
static method ECONNABORTED : int ();
Calls the WSAECONNABORTED method in the Errno class in Windows, or the ECONNABORTED method in the Errno class in other OSs, and returns its return value.
ECONNRESET
static method ECONNRESET : int ();
Calls the WSAECONNRESET method in the Errno class in Windows, or the ECONNRESET method in the Errno class in other OSs, and returns its return value.
ENOBUFS
static method ENOBUFS : int ();
Calls the WSAENOBUFS method in the Errno class in Windows, or the ENOBUFS method in the Errno class in other OSs, and returns its return value.
EISCONN
static method EISCONN : int ();
Calls the WSAEISCONN method in the Errno class in Windows, or the EISCONN method in the Errno class in other OSs, and returns its return value.
ENOTCONN
static method ENOTCONN : int ();
Calls the WSAENOTCONN method in the Errno class in Windows, or the ENOTCONN method in the Errno class in other OSs, and returns its return value.
ESHUTDOWN
static method ESHUTDOWN : int ();
Calls the WSAESHUTDOWN method in the Errno class in Windows, or the ESHUTDOWN method in the Errno class in other OSs, and returns its return value.
ETIMEDOUT
static method ETIMEDOUT : int ();
Calls the WSAETIMEDOUT method in the Errno class in Windows, or the ETIMEDOUT method in the Errno class in other OSs, and returns its return value.
ECONNREFUSED
static method ECONNREFUSED : int ();
Calls the WSAECONNREFUSED method in the Errno class in Windows, or the ECONNREFUSED method in the Errno class in other OSs, and returns its return value.
ELOOP
static method ELOOP : int ();
Calls the WSAELOOP method in the Errno class in Windows, or the ELOOP method in the Errno class in other OSs, and returns its return value.
ENAMETOOLONG
static method ENAMETOOLONG : int ();
Calls the WSAENAMETOOLONG method in the Errno class in Windows, or the ENAMETOOLONG method in the Errno class in other OSs, and returns its return value.
EHOSTDOWN
static method EHOSTDOWN : int ();
Calls the WSAEHOSTDOWN method in the Errno class in Windows, or the EHOSTDOWN method in the Errno class in other OSs, and returns its return value.
EHOSTUNREACH
static method EHOSTUNREACH : int ();
Calls the WSAEHOSTUNREACH method in the Errno class in Windows, or the EHOSTUNREACH method in the Errno class in other OSs, and returns its return value.
ENOTEMPTY
static method ENOTEMPTY : int ();
Calls the WSAENOTEMPTY method in the Errno class in Windows, or the ENOTEMPTY method in the Errno class in other OSs, and returns its return value.
EUSERS
static method EUSERS : int ();
Calls the WSAEUSERS method in the Errno class in Windows, or the EUSERS method in the Errno class in other OSs, and returns its return value.
EDQUOT
static method EDQUOT : int ();
Calls the WSAEDQUOT method in the Errno class in Windows, or the EDQUOT method in the Errno class in other OSs, and returns its return value.
ESTALE
static method ESTALE : int ();
Calls the WSAESTALE method in the Errno class in Windows, or the ESTALE method in the Errno class in other OSs, and returns its return value.
EREMOTE
static method EREMOTE : int ();
Calls the WSAEREMOTE method in the Errno class in Windows, or the EREMOTE method in the Errno class in other OSs, and returns its return value.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License