summaryrefslogtreecommitdiff
path: root/src/ip.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ip.hpp')
-rw-r--r--src/ip.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ip.hpp b/src/ip.hpp
index ec2db43..8a690b0 100644
--- a/src/ip.hpp
+++ b/src/ip.hpp
@@ -22,6 +22,7 @@
#define __ZMQ_IP_HPP_INCLUDED__
#include "platform.hpp"
+#include "fd.hpp"
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
@@ -30,6 +31,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
+#include <netinet/tcp.h>
#include <netdb.h>
#endif
@@ -60,9 +62,12 @@ namespace zmq
int resolve_ip_hostname (sockaddr_storage *addr_, socklen_t *addr_len_,
const char *hostname_);
- // This function sets up address for UNIX domain transport.
+ // This function sets up address for UNIX domain transport.
int resolve_local_path (sockaddr_storage *addr_, socklen_t *addr_len_,
const char* pathname_);
+
+ // Tunes the supplied TCP socket for the best latency.
+ void tune_tcp_socket (fd_t s_);
}
#endif