--- a/src/line_proto.h Sat Feb 28 21:39:15 2009 +0200
+++ b/src/line_proto.h Sat Feb 28 22:47:39 2009 +0200
@@ -35,9 +35,12 @@
err_t line_proto_read (struct line_proto *lp, char **line_ptr);
/*
- * Signify that the line read with line_proto_read() was handled and can be discarded
+ * Write a single line to the sock_stream, buffering any incomplete fragment that remains unset. Returns zero if the
+ * line was succesfully sent, >0 if it was only partially sent, or -err on errors.
+ *
+ * The given line should already include the terminating '\r\n' character sequence.
*/
-void line_proto_discard (struct line_proto *lp);
+int line_proto_write (struct line_proto *lp, const char *line);
/*
* Get current error_info*