[relp] Formatting problem with open command
Magnus K Karlsson
magnus.k.karlsson at msc.se
Wed Oct 20 02:20:58 CEST 2010
Hi!
I'm using Ubuntu and have installed rsyslog (4.2.0) and repl with debian
package manager. Have the following configuration in mine rsyslog.conf:
#################
#### http://www.rsyslog.com/doc/imrelp.html
#################
$ModLoad imrelp # needs to be done just once
$InputRELPServerRun 20514
The rsyslog server starts fine, no error log in /var/log/syslog (Is there
any other places to look?).
I'm writing a Java client, and there I send the message:
byte[] message = ("1 open 14 relp_version=1\n").getBytes("UTF-8");
RELP-FRAME = HEADER DATA TRAILER
HEADER = TXNR SP COMMAND SP DATALEN
That is hopefully accoring to the spec. (http://www.librelp.com/relp.html)
But I get "1 rsp 44 500 required command not supported by client" back from
the server all the time. I presume there is something wrong with the offers,
but I cannot figure out what.
And what happens when you want to have severals offers how are they
concatened? For example both use relp_version and commands.
I have looked at the C code (http://www.librelp.com/), but I could not
figure out how the string was created.
Regards,
Magnus K Karlsson
More information about the RELP
mailing list