summaryrefslogtreecommitdiff
path: root/src/core/net-sendbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/net-sendbuffer.h')
-rw-r--r--src/core/net-sendbuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/net-sendbuffer.h b/src/core/net-sendbuffer.h
index 3c377110..82f4bb39 100644
--- a/src/core/net-sendbuffer.h
+++ b/src/core/net-sendbuffer.h
@@ -6,6 +6,7 @@
struct _NET_SENDBUF_REC {
GIOChannel *handle;
+ LINEBUF_REC *readbuffer; /* receive buffer */
int send_tag;
int bufsize;
@@ -26,6 +27,8 @@ void net_sendbuffer_destroy(NET_SENDBUF_REC *rec, int close);
occured. */
int net_sendbuffer_send(NET_SENDBUF_REC *rec, const void *data, int size);
+int net_sendbuffer_receive_line(NET_SENDBUF_REC *rec, char **str, int read_socket);
+
/* Flush the buffer, blocks until finished. */
void net_sendbuffer_flush(NET_SENDBUF_REC *rec);