[Dxspider-support] Spider client issue

f6bvp f6bvp at free.fr
Thu Jan 6 16:17:38 GMT 2011


Hi Dirk,

First, I must apologize for saying client.c code was obsolete.
I had read that signal() was deprecated.
Thus I thought it did not work any more.
This is not the case.

src/README says that client provides a LOCAL connection on a console.

I was using client as suggested in the 1.50 installation manual
at paragraph 1.5 The client program and paragraph 1.6
starting up for the first time.
http://www.dxcluster.org/main/installation_en-1.html#ss1.5

The example responded by a message saying:
Must have at least a callsign (for now)

I tried ./client f6bvp and obtained an error :

Error on connect to localhost port 27754 (111)

I had a look at /etc/hosts file where address 127.0.0.1 was given for 
localhost.
I added 127.0.0.1 and port 27754 in local/Listeners.pm  with no luck.

I replaced 127.0.0.1 by my local IP address and this time ./client f6bvp 
worked.

Digging into client.c source I also found there was an usage message 
that I never
saw for err variable was no properly set.

I suggest the following patch in order to display usage message when 
necessary :

--- client.c    2011-01-06 16:56:06.382272262 +0100
+++ client.c   2011-01-06 17:04:56.428270872 +0100
@@ -796,14 +796,17 @@ void initargs(int argc, char *argv[])
      }

  lerr:
-    if (err) {
-        die("usage: client [-e|-x n|-h<host>|-p<port>|-l<paclen>] 
<call>|login [local|telnet|ax25]");
-    }
-
+    if (argc < 3) err++;
+
      if (optind < argc) {
          call = strupper(argv[optind]);
          ++optind;
      }
+
+    if (err) {
+        fprintf (stderr, "usage: client [-e|-x 
n|-h<host>|-p<port>|-l<paclen>] <call>|login [local|telnet|ax25]\n");
+    }
+
      if (!call)
          die("Must have at least a callsign (for now)");

Usage message lead me to try other option :
./client -h f6bvp-8 f6bvp

worked correctly, as this is the station local address and callsign 
defined in /etc/hosts :
192.168.0.64 f6bvp-8

I do not have ip6 activated on my system, so your ::1 solution was not 
possible.

Thank you for providing this very nice Dx Spider application.

73 de Bernard, f6bvp



Le 03/01/2011 11:00, Dirk Koopman G1TLH a écrit :
> On 01/01/11 19:24, f6bvp wrote:
>> Hi All,
>>
>> I have just downloaded DxSpider from CVS and re installed it,
>> for F6BVP-2 had been down for at least six weeks.
>> I am running Mandriva 64 bits Linux distro with 2.6.36.2 kernel and
>> ROSE/FPAC
>> packet AX.25 switch node.
>> Everything works great : receiving and sending Dx spots.
>>
>> The only issue is with client application.
>>
>> It says :
>>
>> Error on connect to localhost port 27754 (111)
>
> This is almost certainly to do with how you have "localhost" defined 
> in your /etc/hosts. You need to separate out the IPV6 name from the 
> IPV4 one - which is not how most modern linux distros do it. They try 
> to hide the difference.
>
> I had:
>
> 127.0.0.1    localhost
> ::1     localhost ip6-localhost ip6-loopback
>
> which I changed to:
>
> ::1     ip6-localhost ip6-loopback
>
>>
>> despite I have declared spdlogin port 27754/tcp and /udp in
>> /etc/services as requested
>>
>> Is this a known issue ?
>> Looking at client source code, it seems rather outdated.
>
> What you really mean is "old" :-)
>
> Which means that I suppose I should make client.c IPV6 capable, but 
> more importantly, why are you using the client program for telnet 
> connections? If that is the way you are using it, it has been 
> superseded by the definition in Listeners.pm.
>
> The only reason to use the client program is for incoming ax25 or 
> other more exotic, non IP based, connections.
>
>>
>> Happy new year to all DXers.
>>
>
> and HNY to you and everyone on the list from me.
>
> Dirk
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support




More information about the Dxspider-support mailing list