diff -r f4472119de3b -r c59d3eaff0fb src/sock.h --- a/src/sock.h Tue Apr 28 17:52:48 2009 +0300 +++ b/src/sock.h Tue Apr 28 20:27:45 2009 +0300 @@ -11,23 +11,6 @@ #include /** - * Socket function error codes - */ -enum sock_error_code { - _ERR_SOCK_BEGIN = _ERR_SOCK, - ERR_SOCKET, ///< socket(2) failed - ERR_CONNECT, ///< connect(2) error - either direct or async - ERR_READ, ///< read(2) error - will probably show up as an ERR_WRITE as well - ERR_READ_EOF, ///< EOF on read(2) - ERR_WRITE, ///< write(2) error - data was unsent, will probably show up as an ERR_READ as well - ERR_WRITE_EOF, ///< write(2) gave EOF - zero bytes written - ERR_FCNTL, ///< fcntl(2) failed - ERR_CLOSE, ///< close(2) failed, some written data was probably not sent - ERR_GETSOCKOPT, ///< getsockopt(2) failed - ERR_OPEN, ///< open(2) failed -}; - -/** * Initialize the socket module's global state. Call this before calling any other sock_* functions. * * The given \a ev_base is the libevent base to use for nonblocking operation.