version 1.22, 2022/04/12 14:51:04 |
version 1.23, 2022/12/26 19:16:02 |
|
|
|
|
/* |
/* |
* Write "line" (NUL-terminated) followed by a newline. |
* Write "line" (NUL-terminated) followed by a newline. |
* Returns zero on failure, non-zero on succcess. |
* Returns zero on failure, non-zero on success. |
*/ |
*/ |
int |
int |
io_write_line(struct sess *sess, int fd, const char *line) |
io_write_line(struct sess *sess, int fd, const char *line) |
|
|
} |
} |
|
|
/* |
/* |
* Like io_buffer_buf(), but also accomodating for multiplexing codes. |
* Like io_buffer_buf(), but also accommodating for multiplexing codes. |
* This should NEVER be passed to io_write_buf(), but instead passed |
* This should NEVER be passed to io_write_buf(), but instead passed |
* directly to a write operation. |
* directly to a write operation. |
*/ |
*/ |
|
|
* io_lowbuffer_alloc(... sizeof(int32_t)); |
* io_lowbuffer_alloc(... sizeof(int32_t)); |
* io_lowbuffer_int(...); |
* io_lowbuffer_int(...); |
* And not sizeof(int32_t) * 2 or whatnot. |
* And not sizeof(int32_t) * 2 or whatnot. |
* Returns zero on failure, non-zero on succes. |
* Returns zero on failure, non-zero on success. |
*/ |
*/ |
int |
int |
io_lowbuffer_alloc(struct sess *sess, void **buf, |
io_lowbuffer_alloc(struct sess *sess, void **buf, |