OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_config.c versions 1.31 and 1.32
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.31 -> 1.32

--- lmtp2nntp_config.c   2002/01/31 15:13:16     1.31
+++ lmtp2nntp_config.c   2002/01/31 15:32:51     1.32
@@ -609,6 +609,144 @@
     catch (ex)
         rethrow;
 
+    /* --timeoutlmtp SINGLE */
+    try {
+        int i;
+
+        if (   (val_get(ctx->val, "option.timeoutlmtp", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutlmtp= \"%s\"", ov->data.s);
+
+        if ((i = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutlmtp, number (%d) out of range", i);
+            throw(0,0,0);
+        }
+        ctx->option_timeout_lmtp_accept = i;
+        ctx->option_timeout_lmtp_read = i;
+        ctx->option_timeout_lmtp_write = i;
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutlmtpaccept SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.timeoutlmtpaccept", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutlmtpaccept = \"%s\"", ov->data.s);
+
+        if ((ctx->option_timeout_lmtp_accept = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutlmtpaccept, number (%d) out of range", ctx->option_timeout_lmtp_accept);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutlmtpread SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.timeoutlmtpread", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutlmtpread = \"%s\"", ov->data.s);
+
+        if ((ctx->option_timeout_lmtp_read = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutlmtpread, number (%d) out of range", ctx->option_timeout_lmtp_read);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutlmtpwrite SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.timeoutlmtpwrite", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutlmtpwrite = \"%s\"", ov->data.s);
+
+        if ((ctx->option_timeout_lmtp_write = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutlmtpwrite, number (%d) out of range", ctx->option_timeout_lmtp_write);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutnntp SINGLE */
+    try {
+        int i;
+
+        if (   (val_get(ctx->val, "option.timeoutnntp", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutnntp= \"%s\"", ov->data.s);
+
+        if ((i = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutnntp, number (%d) out of range", i);
+            throw(0,0,0);
+        }
+        ctx->option_timeout_nntp_connect = i;
+        ctx->option_timeout_nntp_read = i;
+        ctx->option_timeout_nntp_write = i;
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutnntpconnect SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.timeoutnntpconnect", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutnntpconnect = \"%s\"", ov->data.s);
+
+        if ((ctx->option_timeout_nntp_connect = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutnntpconnect, number (%d) out of range", ctx->option_timeout_nntp_connect);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutnntpread SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.timeoutnntpread", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutnntpread = \"%s\"", ov->data.s);
+
+        if ((ctx->option_timeout_nntp_read = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutnntpread, number (%d) out of range", ctx->option_timeout_nntp_read);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
+    /* --timeoutnntpwrite SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.timeoutnntpwrite", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--timeoutnntpwrite = \"%s\"", ov->data.s);
+
+        if ((ctx->option_timeout_nntp_write = atoi(ov->data.s)) < 0) {
+            log1(ctx, ERROR, "option --timeoutnntpwrite, number (%d) out of range", ctx->option_timeout_nntp_write);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
+
 CUS:
     return;
 }

CVSTrac 2.0.1