]> arthur.barton.de Git - netdata.git/blob - src/socket.h
dns_query_time plugin: replace "." with "_" in dimensions
[netdata.git] / src / socket.h
1 //
2 // Created by costa on 24/12/2016.
3 //
4
5 #ifndef NETDATA_SOCKET_H
6 #define NETDATA_SOCKET_H
7
8 extern int connect_to(const char *definition, int default_port, struct timeval *timeout);
9 extern int connect_to_one_of(const char *destination, int default_port, struct timeval *timeout, size_t *reconnects_counter, char *connected_to, size_t connected_to_size);
10
11 extern ssize_t recv_timeout(int sockfd, void *buf, size_t len, int flags, int timeout);
12 extern ssize_t send_timeout(int sockfd, void *buf, size_t len, int flags, int timeout);
13
14 #endif //NETDATA_SOCKET_H