summaryrefslogtreecommitdiffstats
path: root/include/comms.h
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-16 15:29:05 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-16 15:29:05 +0000
commit1e5b750059435b1794f282c8bcb070209d6e2cf5 (patch)
tree05314c02114ffe45a1648d6db2d20891764179aa /include/comms.h
parente66ec30996e556383d7a85fb6ab2ae16e7b574f5 (diff)
downloadzabbix-1e5b750059435b1794f282c8bcb070209d6e2cf5.tar.gz
zabbix-1e5b750059435b1794f282c8bcb070209d6e2cf5.tar.xz
zabbix-1e5b750059435b1794f282c8bcb070209d6e2cf5.zip
more communication fixes
git-svn-id: svn://svn.zabbix.com/trunk@4028 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/comms.h')
-rw-r--r--include/comms.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/comms.h b/include/comms.h
index 0b9ca98d..dfebdbc4 100644
--- a/include/comms.h
+++ b/include/comms.h
@@ -74,7 +74,11 @@ void zbx_tcp_unaccept(zbx_sock_t *s);
void zbx_tcp_free(zbx_sock_t *s);
-int zbx_tcp_recv(zbx_sock_t *s, char **data);
+#define ZBX_TCP_READ_UNTIL_CLOSE 0x01
+
+#define zbx_tcp_recv(s, data) zbx_tcp_recv_ext(s, data, 0)
+
+int zbx_tcp_recv_ext(zbx_sock_t *s, char **data, unsigned char flags);
int zbx_tcp_check_security(
zbx_sock_t *s,