For us who run more than one client at a time

Harald Barth <[email protected]>
Newsgroups gmane.comp.file-systems.arla.general
Message-ID <[email protected]>
This will (mis)use the ports above 7001 as callback port 
if 7001 happens to be taken. Is this OK or do we need
to be more sophisticated?

Harald.

--- arlad/arla.c.orig   2006-04-20 17:00:55.000000000 +0200
+++ arlad/arla.c        2006-04-20 17:04:27.000000000 +0200
@@ -47,11 +47,14 @@
 initrx (int port)
 {
     int error;
+    int i = 0;
 
     if (port == 0)
        port = afscallbackport;
 
-    error = rx_Init (htons(port));
+    while ((error = rx_Init (htons(port + i)))
+          && i < 10)
+       i++;
     if (error)
        arla_err (1, ADEBERROR, error, "rx_init");
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.