ISocket.error

Calls getsockopt(SOL_SOCKET, SO_ERROR) to obtain the current error code for the socket referred to by fd.

  1. int error()
  2. int error(ISelectable socket)
    class ISocket
    static
    int
    error
    (
    ISelectable socket
    )

Return Value

Type: int

the current error code for this socket, which can be 0, or 0 if an error code could not be obtained for fd.

Meta