src/error.h
branchnew-transport
changeset 164 7847a7c3b678
parent 156 6534a4ac957b
child 178 3d357d055d67
equal deleted inserted replaced
163:27a112d89a73 164:7847a7c3b678
    55     /** socket/IO errors */
    55     /** socket/IO errors */
    56     _ERR_SOCK       = 0x000300,
    56     _ERR_SOCK       = 0x000300,
    57     ERR_SOCKET,         ///< socket(2) failed
    57     ERR_SOCKET,         ///< socket(2) failed
    58     ERR_CONNECT,        ///< connect(2) error - either direct or async
    58     ERR_CONNECT,        ///< connect(2) error - either direct or async
    59     ERR_READ,           ///< read(2) error - will probably show up as an ERR_WRITE as well
    59     ERR_READ,           ///< read(2) error - will probably show up as an ERR_WRITE as well
    60     ERR_READ_EOF,       ///< EOF on read(2)
       
    61     ERR_WRITE,          ///< write(2) error - data was unsent, will probably show up as an ERR_READ as well
    60     ERR_WRITE,          ///< write(2) error - data was unsent, will probably show up as an ERR_READ as well
    62     ERR_WRITE_EOF,      ///< write(2) gave EOF - zero bytes written
    61     ERR_WRITE_EOF,      ///< write(2) gave EOF - zero bytes written
    63     ERR_FCNTL,          ///< fcntl(2) failed
    62     ERR_FCNTL,          ///< fcntl(2) failed
    64     ERR_CLOSE,          ///< close(2) failed, some written data was probably not sent
    63     ERR_CLOSE,          ///< close(2) failed, some written data was probably not sent
    65     ERR_GETSOCKOPT,     ///< getsockopt(2) failed
    64     ERR_GETSOCKOPT,     ///< getsockopt(2) failed
   135     ERR_MISC,               ///< general error
   134     ERR_MISC,               ///< general error
   136     ERR_CMD_OPT,            ///< invalid commandline option
   135     ERR_CMD_OPT,            ///< invalid commandline option
   137     ERR_UNKNOWN,
   136     ERR_UNKNOWN,
   138     ERR_DUP_NAME,           ///< duplicate name
   137     ERR_DUP_NAME,           ///< duplicate name
   139     ERR_EOF,                ///< end of file
   138     ERR_EOF,                ///< end of file
   140 
   139     ERR_MEM,                ///< memory allocation error
       
   140     ERR_NOT_IMPLEMENTED,    ///< function not implemented
   141 };
   141 };
   142 
   142 
   143 /**
   143 /**
   144  * Table of error descriptions
   144  * Table of error descriptions
   145  */
   145  */