OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/nntp.h versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/nntp.h 1.1 -> 1.2

--- nntp.h       2001/08/01 07:04:13     1.1
+++ nntp.h       2001/08/07 09:05:56     1.2
@@ -39,6 +39,7 @@
 typedef struct nntp_st nntp_t;
 
 typedef struct {
+    int     (*select)(int, fd_set *, fd_set *, fd_set *, struct timeval *);
     ssize_t (*read)(int, void *, size_t);
     ssize_t (*write)(int, const void *, size_t);
 } nntp_io_t;
@@ -46,12 +47,16 @@
 typedef enum {
     NNTP_OK,
     NNTP_EOF,
+    NNTP_TIMEOUT,
     NNTP_ERR_SYSTEM,
     NNTP_ERR_ARG,
-    NNTP_ERR_OVERFLOW
+    NNTP_ERR_OVERFLOW,
+    NNTP_ERR_INIT
 } nntp_rc_t;
 
 nntp_t     *nntp_create   (int, int, nntp_io_t *);
+nntp_rc_t   nntp_timeout  (nntp_t *nntp, long);
+nntp_rc_t   nntp_init     (nntp_t *);
 void        nntp_destroy  (nntp_t *);
 nntp_rc_t   nntp_readline (nntp_t *, char *, size_t);
 nntp_rc_t   nntp_writeline(nntp_t *, char *);

CVSTrac 2.0.1