X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Finet.hpp;h=f1fc4c069704fd4f241db5bd58ed37bb5c07acea;hb=HEAD;hp=dca1cc154c1c80ea2fef6e6ae3bd41ffa91a88ee;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/sessiond-comm/inet.hpp b/src/common/sessiond-comm/inet.hpp index dca1cc154..f1fc4c069 100644 --- a/src/common/sessiond-comm/inet.hpp +++ b/src/common/sessiond-comm/inet.hpp @@ -8,10 +8,13 @@ #ifndef _LTTCOMM_INET_H #define _LTTCOMM_INET_H -#include - #include "sessiond-comm.hpp" +#include + +#include +#include + /* See man tcp(7) for more detail about this value. */ #define LTTCOMM_INET_PROC_SYN_RETRIES_PATH "/proc/sys/net/ipv4/tcp_syn_retries" #define LTTCOMM_INET_PROC_FIN_TIMEOUT_PATH "/proc/sys/net/ipv4/tcp_fin_timeout" @@ -24,7 +27,7 @@ * (180/5) by considering that it grows linearly. This is of course uncertain * but this is the best approximation we can do at runtime. */ -#define LTTCOMM_INET_SYN_TIMEOUT_FACTOR 36 +#define LTTCOMM_INET_SYN_TIMEOUT_FACTOR 36 /* * Maximum timeout value in seconds of a TCP connection for both send/recv and @@ -36,8 +39,7 @@ LTTNG_EXPORT extern unsigned long lttcomm_inet_tcp_timeout; struct lttcomm_sock; /* Net family callback */ -extern int lttcomm_create_inet_sock(struct lttcomm_sock *sock, int type, - int proto); +extern int lttcomm_create_inet_sock(struct lttcomm_sock *sock, int type, int proto); extern struct lttcomm_sock *lttcomm_accept_inet_sock(struct lttcomm_sock *sock); extern int lttcomm_bind_inet_sock(struct lttcomm_sock *sock); @@ -45,12 +47,12 @@ extern int lttcomm_close_inet_sock(struct lttcomm_sock *sock); extern int lttcomm_connect_inet_sock(struct lttcomm_sock *sock); extern int lttcomm_listen_inet_sock(struct lttcomm_sock *sock, int backlog); -extern ssize_t lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf, - size_t len, int flags); -extern ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, - const void *buf, size_t len, int flags); +extern ssize_t +lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf, size_t len, int flags); +extern ssize_t +lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, const void *buf, size_t len, int flags); /* Initialize inet communication layer. */ -extern void lttcomm_inet_init(void); +extern void lttcomm_inet_init(); -#endif /* _LTTCOMM_INET_H */ +#endif /* _LTTCOMM_INET_H */