diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-31 07:37:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-03-31 07:37:49 +0000 |
commit | 0b78d239dfb4e80d1b213e7a925ae1fa0b5340be (patch) | |
tree | f6aefbd4d12e10281bae5d27a6cabe38fd5f47df /src/net.h | |
parent | Repeating sections in package block in control for consistency. (diff) | |
download | dnsperf-0b78d239dfb4e80d1b213e7a925ae1fa0b5340be.tar.xz dnsperf-0b78d239dfb4e80d1b213e7a925ae1fa0b5340be.zip |
Merging upstream version 2.5.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/net.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -58,9 +58,8 @@ typedef int (*perf_net_close_t)(struct perf_net_socket* sock); typedef int (*perf_net_sockeq_t)(struct perf_net_socket* sock, struct perf_net_socket* other); /* sockready return: - * -1: An error occurred, see errno - * - EINPROGRESS: socket is still sending - * 0: Socket is not ready, may still be connecting or negotiating + * -1: socket readiness timed out / canceled / interrupted or unknown error + * 0: Socket is not ready, may still be connecting, negotiating or sending * 1: Socket is ready and can be used for sending to */ typedef int (*perf_net_sockready_t)(struct perf_net_socket* sock, int pipe_fd, int64_t timeout); @@ -72,8 +71,10 @@ typedef bool (*perf_net_have_more_t)(struct perf_net_socket* sock); typedef void (*perf_net_sent_cb_t)(struct perf_net_socket* sock, uint16_t qid); typedef enum perf_socket_event { - perf_socket_event_connect, - perf_socket_event_reconnect + perf_socket_event_connecting, + perf_socket_event_connected, + perf_socket_event_reconnecting, + perf_socket_event_reconnected } perf_socket_event_t; /* Callback for socket events related to connection oriented protocols, for statistics */ typedef void (*perf_net_event_cb_t)(struct perf_net_socket* sock, perf_socket_event_t event, uint64_t elapsed_time); |