For us who run more than one client at a time

Harald Barth haba at pdc.kth.se
Thu Apr 20 17:11:44 CEST 2006


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");
 }


More information about the Arla-drinkers mailing list