summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/socket/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnetdata/socket/socket.h')
-rw-r--r--src/libnetdata/socket/socket.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libnetdata/socket/socket.h b/src/libnetdata/socket/socket.h
index 8147c9774..2c282c4c6 100644
--- a/src/libnetdata/socket/socket.h
+++ b/src/libnetdata/socket/socket.h
@@ -46,18 +46,12 @@ int connect_to_one_of(const char *destination, int default_port, struct timeval
int connect_to_one_of_urls(const char *destination, int default_port, struct timeval *timeout, size_t *reconnects_counter, char *connected_to, size_t connected_to_size);
-#ifdef ENABLE_HTTPS
ssize_t recv_timeout(NETDATA_SSL *ssl,int sockfd, void *buf, size_t len, int flags, int timeout);
ssize_t send_timeout(NETDATA_SSL *ssl,int sockfd, void *buf, size_t len, int flags, int timeout);
int wait_on_socket_or_cancel_with_timeout(NETDATA_SSL *ssl, int fd, int timeout_ms, short int poll_events, short int *revents);
-#else
-ssize_t recv_timeout(int sockfd, void *buf, size_t len, int flags, int timeout);
-ssize_t send_timeout(int sockfd, void *buf, size_t len, int flags, int timeout);
-int wait_on_socket_or_cancel_with_timeout(int fd, int timeout_ms, short int poll_events, short int *revents);
-#endif
bool fd_is_socket(int fd);
-bool sock_has_output_error(int fd);
+bool is_socket_closed(int fd);
int sock_setnonblock(int fd);
int sock_delnonblock(int fd);
@@ -200,7 +194,7 @@ void poll_events(LISTEN_SOCKETS *sockets
#define INET6_ADDRSTRLEN 46
#endif
-typedef struct socket_peers {
+typedef struct {
struct {
char ip[INET6_ADDRSTRLEN];
int port;