OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa.h versions 1.10 and 1.11
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa.h 1.10 -> 1.11

--- sa.h 2001/10/06 16:01:48     1.10
+++ sa.h 2001/10/07 14:16:47     1.11
@@ -102,6 +102,17 @@
     SA_ERR_INT  /* internal error */
 } sa_rc_t;
 
+/* list of timeouts */
+typedef enum {
+    SA_TIMEOUT_ALL      = -1,
+    SA_TIMEOUT_ACCEPT   = 0,
+    SA_TIMEOUT_CONNECT  = 1,
+    SA_TIMEOUT_READ     = 2,
+    SA_TIMEOUT_WRITE    = 3,
+    SA_TIMEOUT_RECV     = 4,
+    SA_TIMEOUT_SEND     = 5
+} sa_timeout_t;
+
 /* error handling operations */
 sa_rc_t sa_error        (sa_t *sa, sa_rc_t rv, char **str);
 
@@ -121,7 +132,7 @@
 
 /* socket parameter operations */
 sa_rc_t sa_type         (sa_t *sa, sa_type_t type);
-sa_rc_t sa_timeout      (sa_t *sa, long sec, long usec);
+sa_rc_t sa_timeout      (sa_t *sa, sa_timeout_t id, long sec, long usec);
 sa_rc_t sa_buffers      (sa_t *sa, size_t rsize, size_t wsize);
 
 /* socket connection operations */

CVSTrac 2.0.1