|
|
@ -14,6 +14,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <errno.h> |
|
|
|
#include <errno.h> |
|
|
|
#include <jansson.h> |
|
|
|
#include <jansson.h> |
|
|
|
|
|
|
|
#include <netdb.h> |
|
|
|
#include <pthread.h> |
|
|
|
#include <pthread.h> |
|
|
|
#include <signal.h> |
|
|
|
#include <signal.h> |
|
|
|
#include <stdbool.h> |
|
|
|
#include <stdbool.h> |
|
|
@ -423,6 +424,7 @@ static inline bool sock_timeout(void) |
|
|
|
|
|
|
|
|
|
|
|
bool extract_sockaddr(char *url, char **sockaddr_url, char **sockaddr_port); |
|
|
|
bool extract_sockaddr(char *url, char **sockaddr_url, char **sockaddr_port); |
|
|
|
bool url_from_sockaddr(const struct sockaddr *addr, char *url, char *port); |
|
|
|
bool url_from_sockaddr(const struct sockaddr *addr, char *url, char *port); |
|
|
|
|
|
|
|
bool addrinfo_from_url(const char *url, const char *port, struct addrinfo *addrinfo); |
|
|
|
void keep_sockalive(int fd); |
|
|
|
void keep_sockalive(int fd); |
|
|
|
void nolinger_socket(int fd); |
|
|
|
void nolinger_socket(int fd); |
|
|
|
void noblock_socket(int fd); |
|
|
|
void noblock_socket(int fd); |
|
|
|