uclient: add function for getting the amount of pending read/write data
[project/uclient.git] / uclient.h
index 29563b35d215bd297962bdfca3e0dd22cf2f219e..5ccda748c0312fabc883fd1fb8cef1779579ce7b 100644 (file)
--- a/uclient.h
+++ b/uclient.h
@@ -113,6 +113,7 @@ void uclient_disconnect(struct uclient *cl);
 
 int uclient_read(struct uclient *cl, char *buf, int len);
 int uclient_write(struct uclient *cl, const char *buf, int len);
+int uclient_pending_bytes(struct uclient *cl, bool write);
 int uclient_request(struct uclient *cl);
 
 char *uclient_get_addr(char *dest, int *port, union uclient_addr *a);