[relp] Formatting problem with open command
Magnus K Karlsson
magnus.k.karlsson at msc.se
Wed Oct 20 13:00:48 CEST 2010
Thanks alot! It is working, sending
byte[] message =
("1 open 30 commands=syslog\nrelp_version=1\n").getBytes("UTF-8");
And got the response:
READ '1 rsp 92 200 OK
*relp_version=0*
relp_software=librelp,1.0.0,http://librelp.adiscon.com
commands=syslog
The only thing that is troubling me is the *relp_version=1* value in the
response. If you read the specification:
"The intial version is 1. There also exists an experimental version 0, which
shall not be used in practice."
http://www.librelp.com/relp.html
But when looking at the code in librelp 1.0.0 and relp.h
#define RELP_CURR_PROTOCOL_VERSION 0
Should it not be 1?
2010/10/20 Rainer Gerhards <rgerhards at hq.adiscon.com>
> Sorry, I forgot one question:
>
> > And what happens when you want to have severals offers how are they
> > concatened? For example both use relp_version and commands.
>
> If I read the spec correctly, they should be delimited by LF.
> >
> > I have looked at the C code (http://www.librelp.com/), but I could not
> > figure out how the string was created.
>
> This is the code in question:
>
> http://git.adiscon.com/?p=librelp.git;a=blob;f=src/offers.c;h=7db6eee6001b1b7
> e054e40ae58ea307ff05c4349;hb=HEAD#l292
>
> Rainer
>
--
Med vänliga hälsningar
Magnus K Karlsson
Senior System Developer
Mobile: +46 (0)70 218 00 84
Email: magnus.k.karlsson at msc.se
Blog: magnus-k-karlsson.blogspot.com
MSCs affärsidé är att tillhandahålla högkvalitativa konsulttjänster inom IT.
Genom vårt strukturerade arbetssätt och förståelse för våra kunders
verksamhet levererar vi lösningar med hög affärsnytta. MSC sysselsätter
cirka 50 personer. Bolaget grundades 1987 och B-aktien noterades på NASDAQ
OMX Nordens small cap lista 1998. Mer information hittar du på www.msc.se.
More information about the RELP
mailing list