equal
deleted
inserted
replaced
33 * NULL is returned via *line_ptr instead. Otherwise, nonzero error return code. |
33 * NULL is returned via *line_ptr instead. Otherwise, nonzero error return code. |
34 */ |
34 */ |
35 err_t line_proto_read (struct line_proto *lp, char **line_ptr); |
35 err_t line_proto_read (struct line_proto *lp, char **line_ptr); |
36 |
36 |
37 /* |
37 /* |
38 * Signify that the line read with line_proto_read() was handled and can be discarded |
38 * Write a single line to the sock_stream, buffering any incomplete fragment that remains unset. Returns zero if the |
|
39 * line was succesfully sent, >0 if it was only partially sent, or -err on errors. |
|
40 * |
|
41 * The given line should already include the terminating '\r\n' character sequence. |
39 */ |
42 */ |
40 void line_proto_discard (struct line_proto *lp); |
43 int line_proto_write (struct line_proto *lp, const char *line); |
41 |
44 |
42 /* |
45 /* |
43 * Get current error_info* |
46 * Get current error_info* |
44 */ |
47 */ |
45 const struct error_info* line_proto_error (struct line_proto *lp); |
48 const struct error_info* line_proto_error (struct line_proto *lp); |