--- sa.h 2001/10/09 18:34:12 1.18
+++ sa.h 2001/10/09 18:55:22 1.19
@@ -104,15 +104,15 @@
/* return codes */
typedef enum {
- SA_OK, /* everything ok */
- SA_ERR_ARG, /* invalid argument (wrong parameter) */
- SA_ERR_USE, /* invalid use (wrong context) */
- SA_ERR_MEM, /* out of memory */
- SA_ERR_SYS, /* system error (see errno) */
- SA_ERR_EOF, /* end of file/socket communication */
- SA_ERR_MTC, /* error in match */
- SA_ERR_TMT, /* operation timeout */
- SA_ERR_INT /* internal error */
+ SA_OK, /* everything ok */
+ SA_ERR_ARG, /* invalid argument */
+ SA_ERR_USE, /* invalid use or context */
+ SA_ERR_MEM, /* not enough memory available */
+ SA_ERR_MTC, /* matching operation failed */
+ SA_ERR_EOF, /* communication end */
+ SA_ERR_TMT, /* communication timeout */
+ SA_ERR_SYS, /* operating system error */
+ SA_ERR_INT /* internal error */
} sa_rc_t;
/* list of timeouts */
@@ -137,9 +137,6 @@
SA_SYSCALL_SENDTO
} sa_syscall_t;
-/* error handling operations */
-sa_rc_t sa_error (sa_t *sa, sa_rc_t rv, char **str);
-
/* address object operations */
sa_rc_t sa_addr_create (sa_addr_t **saa);
sa_rc_t sa_addr_destroy (sa_addr_t *saa);
@@ -182,6 +179,9 @@
sa_rc_t sa_recv (sa_t *sa, char *buf, size_t buflen, size_t *bufdone, sa_addr_t **raddr);
sa_rc_t sa_send (sa_t *sa, const char *buf, size_t buflen, size_t *bufdone, sa_addr_t *raddr);
+/* error handling operations */
+sa_rc_t sa_error (sa_t *sa, sa_rc_t rv, char **str);
+
/* cleanup */
#if defined(HAVE_CONFIG_H) && !defined(HAVE_SOCKLEN_T)
#undef socklen_t
|