Working print command with uzblctrl
authorDequis <dx@dxzone.com.ar>
Mon, 15 Jun 2009 06:31:58 +0000 (03:31 -0300)
committerDequis <dx@dxzone.com.ar>
Mon, 15 Jun 2009 06:49:46 +0000 (03:49 -0300)
commit7aba700fc160aadae7e26a2c4f0920b3fb500647
treef364a2e5c78511b5972663b05c02390584e04922
parent50a2ba82d9a667b8e7ad700be399318a8349d338
Working print command with uzblctrl

Also: Changed a few g_error to g_warning to avoid crashes on broken
socket. Flush the channel after sending, shutdown before closing.
Removed unused headers from uzblctrl.c.

The socket protocol is straightforward: you send a command terminated
with a newline, you receive a reply terminated with a newline.
If you ever need newlines inside a reply, you'll have to change this.

uzblctrl closes the connection after getting the reply, but any other
client can stay connected and send/receive other commands.
uzbl.c
uzblctrl.c