adhcpp violating ADC?

General adchpp discussion

Moderator: Moderators

Locked
Dolda2000
Posts: 20
Joined: 2003-11-12 20:11
Location: Täby, Sweden
Contact:

adhcpp violating ADC?

Post by Dolda2000 » 2006-11-13 23:32

I'm no expert, but it seems to me that adhcpp is violating the ADC protocol, based on the following:

I connect to a running instance of adchpp with telnet, and type "HSUP ADBASE<RET>", to which the hub responds with "ISTA 240 This\shub\srequires\sBASE\ssupport<RET>". I found that weird, and instead tried "HSUP ADBASE <RET>" (note the space before <RET>), and indeed that works.

However, reading the ADC specification, it doesn't seem as though this is the correct behavior -- it says that "message_body ::= message_header (separator parameter)*"..., not "message_header separator (parameter separator)*".

Is this a bug, or intended behavior?

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2006-11-14 01:49

If so, a bug.
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Dolda2000
Posts: 20
Joined: 2003-11-12 20:11
Location: Täby, Sweden
Contact:

Post by Dolda2000 » 2006-11-14 22:58

Actually, it seems I was wrong. After closer investigation, it seems that telnet sends CRLF newlines (as might indeed be expected), so adchpp rightly parsed the argument as "ADBASE\r", which, of course, isn't BASE. When I tried with netcat instead, it worked fine.

Sorry for making a fuss for nothing.

Locked