]> git.tuebingen.mpg.de Git - paraslash.git/commit
Pass command via sideband.
authorAndre Noll <maan@systemlinux.org>
Thu, 5 Jan 2012 16:19:49 +0000 (17:19 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 5 May 2012 10:54:54 +0000 (12:54 +0200)
commitaa3fe79526bbce17f5ceec4d9c2d2246f01d6828
tree8d210c8f621991b118e56b613db83e9cb2ce34a6
parent9c2a265397821d91ec628f549516b25757f5c801
Pass command via sideband.

This makes para_cclient pass the paraslash command and its arguments
as a sideband packet to para_server if possible.

For sideband connections the command and its arguments are stored as
NULL-terminated strings. This is better than separating by newlines
(as we do for non-sideband connections) because it allows for arguments
containing newlines.

Suitable helpers for creating and parsing a buffer of NULL-terminated
strings, are provided in client_common.c and command.c, respectively.

No change for non-sideband connections.
client_common.c
command.c