[Click] trailing 0 from control socket

Lars Bro lbro at pulz8.com
Thu Apr 29 12:19:21 EDT 2010


Hi,

When I use the control socket to get the value of something, it looks lik
this:

% lsb at lsb-laptop:/usr/local/testrouter$ telnet localhost 23232
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Click::ControlSocket/1.3
read mySwitch.switch
200 Read handler 'mySwitch.switch' OK
DATA 1
0

Is it part of the protocol ?

it is a bit annoying when using TCL, because the "0" is not followed by a
newline or anything. Therefore, the next
line read will appar as starting with "0"

yours,
Lars Bro


More information about the click mailing list