diff options
author | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-03-01 17:00:19 +0300 |
---|---|---|
committer | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-03-01 17:00:19 +0300 |
commit | 17e7199f0ac0bcf117d01b19c43acdc044b7f6b8 (patch) | |
tree | e0c39434ce0de6e6951cd3be150483f796d6ee65 /include/comms.h | |
parent | 835aa0ef1a92455241e0c7b8ff1edfe1d74d6e4f (diff) |
...G...PS. [ZBX-4148] moved unencrypted part out of zbx_tls_read/write() to zbxcomms
Diffstat (limited to 'include/comms.h')
-rw-r--r-- | include/comms.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/comms.h b/include/comms.h index 4f0717647b0..343e57a6c2f 100644 --- a/include/comms.h +++ b/include/comms.h @@ -34,6 +34,7 @@ typedef long ssize_t; # define zbx_socket_close(s) if (ZBX_SOCKET_ERROR != (s)) closesocket(s) # define zbx_socket_last_error() WSAGetLastError() +# define ZBX_PROTO_AGAIN WSAEINTR # define ZBX_PROTO_ERROR SOCKET_ERROR # define ZBX_SOCKET_ERROR INVALID_SOCKET #else @@ -42,6 +43,7 @@ typedef long ssize_t; # define zbx_socket_close(s) if (ZBX_SOCKET_ERROR != (s)) close(s) # define zbx_socket_last_error() errno +# define ZBX_PROTO_AGAIN EINTR # define ZBX_PROTO_ERROR -1 # define ZBX_SOCKET_ERROR -1 #endif |