OSSP CVS Repository

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

ossp-pkg/sa/sa.h 1.4 -> 1.5

--- sa.h 2001/10/04 11:25:44     1.4
+++ sa.h 2001/10/05 11:40:22     1.5
@@ -82,6 +82,12 @@
 struct sa_st;
 typedef struct sa_st sa_t;
 
+/* socket connection types */
+typedef enum {
+    SA_TYPE_STREAM,
+    SA_TYPE_DATAGRAM
+} sa_type_t;
+
 /* return codes */
 typedef enum {
     SA_OK,
@@ -107,6 +113,7 @@
 sa_rc_t sa_destroy      (sa_t *sa);
 
 /* 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_buffers      (sa_t *sa, size_t rsize, size_t wsize);
 sa_rc_t sa_getoption    (sa_t *sa, int optname, void *optval, socklen_t *optlen);

CVSTrac 2.0.1